Created
October 12, 2021 10:26
-
-
Save ogirginc/7e27666c27e9a4ee4b6fe62c76006244 to your computer and use it in GitHub Desktop.
Display TripMode on Bartender 4, when network name matches.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
network_SSID="$(/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | sed -e "s/^ *SSID: //p" -e d)" | |
phone_name="Ogulcan's Phone" | |
if [ $network_SSID = phone_name ]; then | |
echo true | |
else | |
echo false | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment