Compare commits
No commits in common. '583606402436c52382a273a211f109803ed55cad' and '00966df0497f76c3af603483606a13a3303933df' have entirely different histories.
5836064024
...
00966df049
@ -1,12 +1,5 @@
|
|||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Original source:
|
if [ -n "$FOCUSED_WORKSPACE" ]; then
|
||||||
# https://nikitabobko.github.io/AeroSpace/goodness#show-aerospace-workspaces-in-sketchybar
|
sketchybar --set "$NAME" label="$FOCUSED_WORKSPACE"
|
||||||
|
|
||||||
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