koekeishiya / yabai

A tiling window manager for macOS based on binary space partitioning
MIT License
23.08k stars 638 forks source link

Automating space layouts #2033

Open gargantuanprism opened 8 months ago

gargantuanprism commented 8 months ago

I have a preferred space layout in mind: 3 vertical columns, where column A takes up 50% of the space, then B and C each take up 25%. Clearly this is just a node and two leaves, but how do I force a specific window or application to always be in column A? I tried something like this:

yabai -m signal --add event=window_created app='Google Chrome' action='yabai -m window $YABAI_WINDOW_ID --warp west'

but it's either not triggering or I'm misunderstanding how I'm supposed to handle this.

Bellavene commented 3 months ago

try yabai -m signal --add event=window_created app='Google Chrome' action='yabai -m window $YABAI_WINDOW_ID --warp first'