Yabai: Feature request: Ability to set default initial window behavior

Created on 16 Dec 2019  路  2Comments  路  Source: koekeishiya/yabai

I was wondering if it's possible to config initial default window behavior so that new opened windows are for example floating windows (or what user prefers). It is sometimes annoying when new windows rearrange my view and this option would be helpful.

question

Most helpful comment

What you're looking for is called window rules.

docs tl;dr

```sh

float all Safari windows by default

yabai -m rule --add app='^Safari$' manage=off

float all windows by default whose title ends in ' Preferences'

yabai -m rule --add title=' Preferences$' manage=off

Make Chrome Picture in Picture mode windows appear topmost and on all spaces

yabai -m rule --add app='^Google Chrome$' title='^Picture in Picture$' manage=off topmost=on sticky=on

All 2 comments

What you're looking for is called window rules.

docs tl;dr

```sh

float all Safari windows by default

yabai -m rule --add app='^Safari$' manage=off

float all windows by default whose title ends in ' Preferences'

yabai -m rule --add title=' Preferences$' manage=off

Make Chrome Picture in Picture mode windows appear topmost and on all spaces

yabai -m rule --add app='^Google Chrome$' title='^Picture in Picture$' manage=off topmost=on sticky=on

Thank you, this was it! :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eramdam picture eramdam  路  3Comments

ThiagoFacchini picture ThiagoFacchini  路  4Comments

cmacrae picture cmacrae  路  4Comments

imjma picture imjma  路  3Comments

tsujp picture tsujp  路  3Comments