Skip to content

Automatically disables WiFi when you connect to Ethernet (w/ Notification Centre Support)

Notifications You must be signed in to change notification settings

danema/toggleLocation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

toggleLocation for Mac OSX 10.8.x (w/ Notification Center Support)

Installation Instruction

1. Clone the repository
# git clone git://github.com/danema/toggleLocation.git ~/.toggleLocation

2. Move required Scripts to the appropriate locations
# rsync -ave ssh ~/.toggleLocation/Scripts/toggleLocation.sh ~/Scripts/; rsync -ave ssh ~/.toggleLocation/Library/LaunchAgents/com.davidanema.toggleLocation.plist ~/Library/LaunchAgents/

3. Change [username] in ~/.toggleLocation/Library/LaunchAgents/com.davidanema.toggleLocation.plist to match yours

4. Set the correct permissions
# chmod 755 ~/Scripts/toggleLocation.sh

5. Install terminal-notifier by https://github.com/alloy/terminal-notifier to push the Status to Notification Center
# sudo gem install terminal-notifier

6. Edit Locations in System Preferences Network pane, Duplicate the Location, rename ‘Automatic Copy’ to ‘Ethernet’ and remove the ‘Wi-Fi’-adapter from the ‘Ethernet’-location.

7. Launch the agent to start detecting changes to the Network
# launchctl load com.davidanema.toggleLocation.plist

About

Automatically disables WiFi when you connect to Ethernet (w/ Notification Centre Support)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published