Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help] Seeking differing Top Padding Value per display. #1876

Closed
10zero11 opened this issue Oct 3, 2023 · 4 comments
Closed

[Help] Seeking differing Top Padding Value per display. #1876

10zero11 opened this issue Oct 3, 2023 · 4 comments

Comments

@10zero11
Copy link

10zero11 commented Oct 3, 2023

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?)

@cbackas
Copy link

cbackas commented Oct 11, 2023

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.

@10zero11
Copy link
Author

@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.

@wenqihuang
Copy link

Maybe helpful:

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

@koekeishiya
Copy link
Owner

If external_bar is not sufficient, read this comment: #598 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants