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

9 lines
189 B
Bash
Raw Permalink Normal View History

#!/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}"