Yabai: How do I only tile certain apps?

Created on 19 Nov 2020  路  4Comments  路  Source: koekeishiya/yabai

My current configuration is has the layout set to bsp to tile windows and I'm using a list of apps that are specifically disabled with yabai -m rule --add manage=off app="$app".

I want to invert my configuration so that all apps float by default and I have a specific list of apps that are managed. How would I accomplish this? I tried setting the global mode to float and manually setting manage=on on those apps but it didn't work.

question

Most helpful comment

First set the space layout to bsp.

Then yabai -m rule --add app!="^(Safari|Finder|Notes)$" manage=off

This will float every app except Safari, Finder, and Notes.

All 4 comments

First set the space layout to bsp.

Then yabai -m rule --add app!="^(Safari|Finder|Notes)$" manage=off

This will float every app except Safari, Finder, and Notes.

Just for curiosity, why is that inverted way not correct? That is: setting the layout to float by yabai -m config layout float followed by setting a rule to make some windows be managed by yabai -m rule --add app="^(Safari|Finder|Notes)$" manage=on.
Thank you!

Floating spaces are not set up the same way; they are not initialized in a way that allowws for any tiling to happen, if that makes sense. They are simply "left alone". The space layout setting will override any potential modifier that is put on the window in this case.

Edit:
The reason for this is simply that the additional complexity and introduction of potential error sources and edge-cases that has to be dealt with, is simply not worth it just for user convenience. I understand that people may disagree, but this is not something that I am going to change.

Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

haze picture haze  路  4Comments

stylerw picture stylerw  路  4Comments

d-miketa picture d-miketa  路  3Comments

zoenglinghou picture zoenglinghou  路  3Comments

eramdam picture eramdam  路  3Comments