SketchyBar/plugins/wifi.sh
2023-01-31 22:16:53 +01:00

8 lines
185 B
Bash
Executable file

#!/bin/sh
# The wifi_change event supplies a $INFO variable in which the current SSID
# is passed to the script.
WIFI=${INFO:-"Not Connected"}
sketchybar --set $NAME label="${WIFI}"