-
-
Notifications
You must be signed in to change notification settings - Fork 688
Ignore notch M1Pro: added '-m config notch' (on/off) #1938
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
base: master
Are you sure you want to change the base?
Conversation
Allows you to ignore the macbook m1pro/m2pro notch on compatible apps. Default is on, so no breaking change.
|
I think this would work better as a rule property that can target specific apps/windows, instead of being a global configuration option that applies to everything. |
3a0e1d8 to
656f8c8
Compare
|
Is this even necessary? Alacritty supports "SimpleFullscreen", which when activated fullscreens the window behind the notch. There is no reason to use yabai to move and resize the window at this point, so doing Does VS Code work differently? |
The idea was to still have yabai managing windows (for example two vscode windows side by side), but be able to utilize the extra screen space. Now yabai places all windows under the notch regardless.. |
I must have missed the "SimpleFullscreen" ability. What's the yabai command to tell a window to go into "SimpleFullscreen" mode? Thanks! |
Sorry for the confusion. The
So I kinda get where you're coming from, but I have some problems visualizing how this would play out in more complex layouts where there are windows from multiple applications where some can place windows below the notch and some cannot. I am also unsure if yabai is capable of moving said window behind the notch using the accessibility API, or if it is only that application itself that is able to place its own windows behind the notch. I guess my general take on this request is that I am not against the idea of such a feature, but I am picky regarding how said feature is implemented and how it interacts with the rest of the yabai functionality. For me that means I'm at the stage where I'd have to play around with multiple applications that provide this kind of support, observe some behaviour and try to think of how this could all work together. |
No worries, I just got excited. I love |
It can be done by injecting code into that specific application. I have so far opted for not doing this in yabai, but maybe it could be added as an opt-in kind of feature. |
Maybe I'm unaware of some more complex scenarios, but here are the three 3 scenarios I could think of, and what I believe are sane recommendations for what the behavior should look like in those scenarios. All windows touching top of screen support notch and are enabled All windows touching top of do not screen support notch or are not enabled Some windows touching top of screen support notch and are enabled Are there other scenarios outside of these 3? |
Allows you to ignore the macbook m1pro/m2pro notch on compatible apps. Default is on, so no breaking change.

#1934