Compare commits
2 Commits
00966df049
...
5836064024
Author | SHA1 | Date |
---|---|---|
Alpha Chen | 5836064024 | 1 month ago |
Alpha Chen | 87344b7cd2 | 1 month ago |
@ -1,5 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
if [ -n "$FOCUSED_WORKSPACE" ]; then
|
# Original source:
|
||||||
sketchybar --set "$NAME" label="$FOCUSED_WORKSPACE"
|
# https://nikitabobko.github.io/AeroSpace/goodness#show-aerospace-workspaces-in-sketchybar
|
||||||
|
|
||||||
|
workspaces=("${(@f)$(aerospace list-workspaces --monitor $1)}")
|
||||||
|
|
||||||
|
if (($workspaces[(Ie)$FOCUSED_WORKSPACE])); then
|
||||||
|
sketchybar --set "$NAME" label="$FOCUSED_WORKSPACE" background.drawing=on
|
||||||
|
else
|
||||||
|
sketchybar --set "$NAME" label="$FOCUSED_WORKSPACE" background.drawing=off
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in new issue