Toggle Background For Active Space #83
-
Hi, I was wondering whether it is possible to toggle the background for the current active / selected space (this is probably very simple and I am missing something...) I have tried the Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
FelixKratz
Oct 23, 2021
Replies: 1 comment 1 reply
-
You can achieve that by supplying a custom space script like this: #!/usr/bin/env bash
if [ "$SELECTED" = "true" ]; then
sketchybar -m --set $NAME icon.highlight=on background.drawing=on
else
sketchybar -m --set $NAME icon.highlight=off background.drawing=off
fi which you can save as ~/.config/sketchybar/plugins/space.sh sketchybar -m --set <space_name> script="~/.config/sketchybar/plugins/space.sh" |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ssate
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can achieve that by supplying a custom space script like this:
which you can save as ~/.config/sketchybar/plugins/space.sh
and then simply add it as the script for all of your space components: