users/ryan/modules/sketchybar/bar-config/plugins/space.sh

2e30121671a730a2b4bc2f82d2e30ed5c9ff70e5 · 301 B · 8 lines raw

1 #!/usr/bin/env bash
2 # hyprland/workspaces active/visible -> highlighted (white) icon.
3 # Waybar's 3px white top-border on the active button maps to icon.highlight here.
4 if [ "$SELECTED" = "true" ]; then
5 sketchybar --set "$NAME" icon.highlight=on
6 else
7 sketchybar --set "$NAME" icon.highlight=off
8 fi