Code Monkey home page Code Monkey logo

toggleairport's Introduction

The credit for most of the code belongs to others including https://gist.github.com/albertbori/1798d88a93175b9da00b

This program turns off WiFi when it detects a wired ethernet connection and turns on WiFi when the ethernet is unplugged.

For Catalina and later

Tested on Catalina

git clone https://github.com/Calvin-LL/toggleairport.git
cd toggleairport
./install.sh

to uninstall just do

./uninstall.sh

For pre Catalina

(or if the Catalina version didn't work for you)

git clone --branch pre_catalina https://github.com/Calvin-LL/toggleairport.git
cd toggleairport
./install.sh

to uninstall just do

./uninstall.sh

Do not run either of the scripts with sudo, if you do, notifications will not display.

toggleairport's People

Contributors

calvin-ll avatar deinspanjer avatar panzerfahrer avatar paulbhart2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

toggleairport's Issues

Waking up from sleep mode

After waking up from sleep mode, the script activates the WiFi again for a short time when ethernet is connected. Maybe there should be a short timeout after waking up, until macOS has loaded all network interfaces. Or what else could be the reason?

macOS Monterey (12.1)

Has this been tested against macOS 12.1? If not, would you mind testing and posting any updates to the script to allow it to work with 12.x.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.