yabai icon indicating copy to clipboard operation
yabai copied to clipboard

[Help] Seeking differing Top Padding Value per display.

Open 10zero11 opened this issue 1 year ago • 3 comments

Hi I'm seeking some advice.

I have two 4K external monitors plugged into a 14" MBP.

I was trying to use a toolbar via Ubersicht.

I want to set a 'Top Padding' that is specific to each screen. eg Screen 1 and 2 have a Top Padding of 22 and Screen 3 has a Top Padding of 11.

Is this possible? It seems if I were to set a script to detect the screen and change the padding that this would only be correct for the currently focused window/screen.

Ideally a proportional 'Top Padding' value might allow for a one size fits all. (I don't think this is possible is it?)

10zero11 avatar Oct 03 '23 05:10 10zero11

Here's how i've been handling it: https://github.com/cbackas/.dotfiles/blob/main/home/.config/yabai/scripts/set_padding.sh

To set top padding on my main display only it uses yabai -m config external_bar main:$padding:0. I also iterate over each space and if that space is on the main display I do some various paddings depending on how many windows there are, but for top padding i like the external_bar setting. I have this set_padding.sh script set to run a few events.

cbackas avatar Oct 11 '23 13:10 cbackas

@cbackas thank you for this. It seems like a way address my issue. I'll need to read up some more. Your config files are a very interesting read. Thanks for sharing.

10zero11 avatar Oct 13 '23 00:10 10zero11

Maybe helpful:

## Status bar
yabai -m config --dispaly 0 external_bar all:20:0
yabai -m config --dispaly 1 external_bar all:30:0

wenqihuang avatar Nov 18 '23 21:11 wenqihuang

If external_bar is not sufficient, read this comment: https://github.com/koekeishiya/yabai/issues/598#issuecomment-1992675562

koekeishiya avatar Mar 12 '24 22:03 koekeishiya