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

Ignore notch option #1934

Open
Nejrup opened this issue Oct 25, 2023 · 2 comments
Open

Ignore notch option #1934

Nejrup opened this issue Oct 25, 2023 · 2 comments

Comments

@Nejrup
Copy link

Nejrup commented Oct 25, 2023

A suggestion: It would be nice addition with a setting to ignore the notch height, on MacBooks with notch (m1pro, m2pro..), for apps that support to go off screen dimensions.

could be: yabai -m --toggle notch

@nocksock
Copy link

Not quite sure what you mean with "apps that support to go off screen dimensions", but it sounds like you're looking for external_bar setting?

yabai -m config external_bar main:24:0

This will give the main display a 24 pixel spacing at the top. I don't have a notch, so not sure what value would be appropriate.

@Nejrup
Copy link
Author

Nejrup commented Oct 26, 2023

Not quite sure what you mean with "apps that support to go off screen dimensions", but it sounds like you're looking for external_bar setting?

Thanks for the suggestions, but not quite, as it wont accept negative values (main:-24:0 etc).
Apps are all placed under the notch in MacOS by default, but some apps like VSCode let you ignore the screen dimensions. (So could be useful in fullscreen fx)
Just had a look at src, and Notch height is defined in 'workspace.h' (workspace_display_notch_height), will try to see if I can figure out to do a custom cmd for it

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

2 participants