Skip to content

Toggle Background For Active Space #83

Answered by FelixKratz
ssate asked this question in Q&A
Discussion options

You must be logged in to vote

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
and then simply add it as the script for all of your space components:

sketchybar -m --set <space_name> script="~/.config/sketchybar/plugins/space.sh"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ssate
Comment options

Answer selected by ssate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants