Open patlux opened 6 months ago
Found this https://github.com/koekeishiya/yabai/issues/2230#issuecomment-2051763422 :
yabai -m rule --apply
And it helped me
There was a change in version 7.0.0 that changed how rules work. Now they only apply to windows opened after the rule is added.
Adding what @vsuharnikov has shared after declaring all the rules restores the older behavior.
@PrayagS it doesn't really – if you restart yabai at any moment, it won't work anymore for existing windows (which I'm quite sure worked before). It seems like the proper equivalent would be BOTH --add
and --apply
. Is there a documentation for that? The https://github.com/koekeishiya/yabai/wiki/Commands#window-commands wiki section doesn't cover the change at all.
It seems like the proper equivalent would be BOTH --add and --apply.
Yeah that's what I meant. I declare all the rules using --add
and then do --apply
at the end as shown above.
Is there a documentation for that?
https://github.com/koekeishiya/yabai/blob/master/CHANGELOG.md#changed-6 - See the Changed
section for version 7.0.0
.
When adding new window rules, their effects will only apply to windows that open after the rule has been added https://github.com/koekeishiya/yabai/issues/2123
Yeah that's what I meant.
Understood, thanks! I was thinking maybe there's an alternative flag which does both at the same time, but consulting https://github.com/koekeishiya/yabai/blob/master/doc/yabai.asciidoc#rule, looks like for now I'll have to use two commands per window too in .yabairc
.
Hi,
I had to downgrade to v7.0.4 because in v7.1.0 my rules are not working anymore:
MacBook Pro Max M2. I'm using only the tiling feature. System Integrity Protection is enabled on my system.