Native macOS app that registers itself to WiFi network changes and executes either ~/.wifiConnected
or ~/.wifiDisconnected
scripts.
Two example scripts, connecting and disconnecting from VPN configurations respectively, are included.
This app is built to be added to your startup items and just keep running in the background. The icon will not show up in the Dock, use Activity Montior to shut it down if needed. A prebuilt & signed app binary is available in the releases.
Place these scripts in your home folder (~
) and make them executable:
$ chmod g+x ~/.wifi*
- 1st arg: SSID of the connected network
- 2nd arg: SSID of the previously connected network, if any. May be the same.
- 1st arg: SSID of the previously connected network, if any
See LICENSE.