Skip to content

Instantly share code, notes, and snippets.

@ogirginc
Created October 12, 2021 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ogirginc/7e27666c27e9a4ee4b6fe62c76006244 to your computer and use it in GitHub Desktop.
Save ogirginc/7e27666c27e9a4ee4b6fe62c76006244 to your computer and use it in GitHub Desktop.
Display TripMode on Bartender 4, when network name matches.
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