SketchyBar/plugins/wifi.sh
2023-08-22 09:14:00 +02:00

9 lines
230 B
Bash
Executable file

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