Skip to content

distinct bar color per display #439

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

You must be logged in to vote

There are a number of ways you could achieve what you would like to have.

I think the simplest would be to use the bracket special item:
With it you can connect two arbitrary items with a common background, i.e.
adding this after all other items have been added will fill the gap between them

sketchybar --add item left_anchor left \
           --set left_anchor width=0 display=1 \
           --add item right_anchor right \
           --set right_anchor width=0 display=1 \
           --add bracket gap_fill left_anchor right_anchor \
           --set gap_fill background.color=0xff00ff00

If instead you add this before adding any other items, you will end up with this:

As you can see, these …

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by FelixKratz
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #437 on November 10, 2023 11:50.