diff options
| author | Ryan Schanzenbacher <ryan@rschanz.org> | 2026-08-03 01:22:44 -0400 |
|---|---|---|
| committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2026-08-03 01:22:44 -0400 |
| commit | 0c8fa3a2a270747f3dbb54fe8792f3f0aec997e3 (patch) | |
| tree | 6f94ff3aeea2af859c7c166e01a8e73002017893 /users/ryan/modules/sketchybar/bar-config/plugins/space.sh | |
Initial commit: combined darwin + guix-linux home-manager flake
Supersedes nix-dotfiles (darwin) and guix-dotfiles' ad-hoc
nix-home-manager flake (linux). See README.md/MIGRATION.md.
Diffstat (limited to 'users/ryan/modules/sketchybar/bar-config/plugins/space.sh')
| -rwxr-xr-x | users/ryan/modules/sketchybar/bar-config/plugins/space.sh | 8 |
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. | ||
| 4 | if [ "$SELECTED" = "true" ]; then | ||
| 5 | sketchybar --set "$NAME" icon.highlight=on | ||
| 6 | else | ||
| 7 | sketchybar --set "$NAME" icon.highlight=off | ||
| 8 | fi | ||
