You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
412 B
13 lines
412 B
#!/usr/bin/env zsh
|
|
|
|
# Original source:
|
|
# 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
|