aboutsummaryrefslogtreecommitdiff
path: root/users/ryan/modules/sketchybar/bar-config/plugins/space.sh
diff options
context:
space:
mode:
Diffstat (limited to 'users/ryan/modules/sketchybar/bar-config/plugins/space.sh')
-rwxr-xr-xusers/ryan/modules/sketchybar/bar-config/plugins/space.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/users/ryan/modules/sketchybar/bar-config/plugins/space.sh b/users/ryan/modules/sketchybar/bar-config/plugins/space.sh
new file mode 100755
index 0000000..f15ecca
--- /dev/null
+++ b/users/ryan/modules/sketchybar/bar-config/plugins/space.sh
@@ -0,0 +1,8 @@
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.
4if [ "$SELECTED" = "true" ]; then
5 sketchybar --set "$NAME" icon.highlight=on
6else
7 sketchybar --set "$NAME" icon.highlight=off
8fi