Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

A script for macOS to turn off WiFi when Ethernet is plugged in, and turn on WiFi when Ethernet is unplugged

Notifications You must be signed in to change notification settings

earendildev/toggleairport

 
 

Repository files navigation

The credit for most of the code belongs to others including albertbori/toggleairpot forked from Calvin-LL/toggleairport

Overview

Simply this Script turns off the WiFi Adapter when it detects a Wired Ethernet Connection and turns the WiFi back on when the Ethernet Adapter is unplugged. Only for MacOs.

For Catalina and later

To Install

mkdir -p $HOME/.config/scripts/ && cd $HOME/.config/scripts/
git clone https://github.com/earendildev/toggleairport.git
cd toggleairport
./install.sh

To Uninstall

cd $HOME/.config/scripts/toggleairport
./uninstall.sh

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

About

A script for macOS to turn off WiFi when Ethernet is plugged in, and turn on WiFi when Ethernet is unplugged

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%