-
-
Notifications
You must be signed in to change notification settings - Fork 138
Open
Labels
PR welcomeA pull-request for this would likely be mergedA pull-request for this would likely be mergedenhancementNew feature or requestNew feature or request
Description
sketchybar@v2.21.0
Hi there,
First of all thanks for SketchyBar. It's a fantastic bit of kit.
I'm setting up left-right bars around the notch using the q-e anchor + brackets trick.
Here's a minimal repro:
sketchybar \
--bar height=30 color=0x00000000 y_offset=15 notch_width=330 padding_left=15 \
--add item l_bar__l_anchor left \
--set l_bar__l_anchor label.background.color=0xffff0000 label="LEFT" \
--add item l_bar__r_anchor q \
--set l_bar__r_anchor label.background.color=0xffff0000 label="RIGHT" \
--add bracket left_bar l_bar__l_anchor l_bar__r_anchor \
--set left_bar \
background.color=0xff4e4e4e \
background.height=30 \
padding_left=100 \
background.padding_left=100 \
--updateWhich gives the following to the left of my notch:

Current behaviour
- If you delete the line
background.height=30 \, the bracket disappears completely. There's no mention I can find of this in the docs, and from what I understand of the examples and plugin code I've seen it's meant to calculate height automatically. Could be wrong about that. - You'll notice
left_paddingandbackground.left_paddingaren't applying padding. I'm not sure which is intended, for the following reason: a solution is to add defaultpadding_left(code below). I'm not sure why this works, but it means that every item needs to have padding reset if it differs from brackets.
Bracket padding hack:
sketchybar \
--bar height=30 color=0x00000000 y_offset=15 notch_width=330 padding_left=15 \
--default padding_left=100 \
...Expected behaviour
- At least a note in the docs about the requirement for
background.heighton brackets, but ideally calculating height dynamically and removing the requirement. - allowing
padding_*andbackground.padding_*to influence brackets without needing to set defaults.- For someone new to Sketchybar it's unexpected that brackets use the
background.*settings for rendering but not thebackground.padding_*setting. Maybe worth changing that?
- For someone new to Sketchybar it's unexpected that brackets use the
Looking forward to hearing from you. Thanks again!
mickaelperrin, zuqini and ThreeFx
Metadata
Metadata
Assignees
Labels
PR welcomeA pull-request for this would likely be mergedA pull-request for this would likely be mergedenhancementNew feature or requestNew feature or request
