use bash for sketchybar aerospace plugin

main
Alpha Chen 1 month ago
parent a220a001d1
commit 7759036795
No known key found for this signature in database

@ -1,9 +1,10 @@
#!/usr/bin/env zsh #!/usr/bin/env bash
# Original source: # Original source:
# https://nikitabobko.github.io/AeroSpace/goodness#show-aerospace-workspaces-in-sketchybar # https://nikitabobko.github.io/AeroSpace/goodness#show-aerospace-workspaces-in-sketchybar
if (($argv[(Ie)$FOCUSED_WORKSPACE])); then # https://stackoverflow.com/a/47541882
if printf '%s\0' "${argv[@]}" | grep -F -x -z -- "$FOCUSED_WORKSPACE"; then
sketchybar --set "$NAME" label="$FOCUSED_WORKSPACE" background.drawing=on sketchybar --set "$NAME" label="$FOCUSED_WORKSPACE" background.drawing=on
else else
sketchybar --set "$NAME" label="$FOCUSED_WORKSPACE" background.drawing=off sketchybar --set "$NAME" label="$FOCUSED_WORKSPACE" background.drawing=off

Loading…
Cancel
Save