rix101/modules/nix-darwin/yabai/sketchybar/plugins/wifi.sh

8 lines
189 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}"