Skip to content

Expand Bracket on Click #466

Answered by FelixKratz
i-ilak asked this question in Q&A
Dec 26, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Instead of setting the width to zero, you could set the drawing property to off. This completely disables those items and they will no longer contribute to the width of the bracket. Currently toggling the drawing property can not be animated however.

This snippet does exactly what you want (without animations):

sketchybar --add item c.control right \
           --set c.control icon="<>" label=Toggle \
                                     click_script="sketchybar --set '/c\.[0-9]/' drawing=toggle" \
           --add item c.1 right --set c.1 icon=1 label=one \
           --add item c.2 right --set c.2 icon=2 label=two \
           --add item c.3 right --set c.3 icon=3 label=three

sketchyba…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@i-ilak
Comment options

Answer selected by FelixKratz
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 #464 on December 28, 2023 16:43.