yabai icon indicating copy to clipboard operation
yabai copied to clipboard

Is there a way to fix the window's insertion point to only one side?

Open eomdohyeon opened this issue 1 year ago • 1 comments

Is there a way to fix the window's insertion point to only one side?

"yabai" is automatically inserted vertically or horizontally, taking into account the proportions when inserting a new window by default.

But I'm used to "i3wm" and want to unconditionally insert it on the right side of the window.

Tired of specifying the "yabai -m window --insert east" command every time.

Is there a way?

eomdohyeon avatar Sep 18 '22 10:09 eomdohyeon

Not yet, maybe with signals. I'll add a split_type config option for next release; options will be horizontal, vertical, auto.

koekeishiya avatar Sep 18 '22 22:09 koekeishiya

Not yet, maybe with signals. I'll add a split_type config option for next release; options will be horizontal, vertical, auto.

I'm new yabai and am wondering if this new split_type option can be changed during runtime and therefore have a skhd binding which changes changes the type ?

In addition - would it be possible to have a toggle value? Switch would switch to vertical if it's horizontal and vice-versa?

timofurrer avatar Sep 19 '22 09:09 timofurrer

I'm new yabai and am wondering if this new split_type option can be changed during runtime and therefore have a skhd binding which changes changes the type

Every command can be run at both config and run-time, and should have the same effect.

In addition - would it be possible to have a toggle value? Switch would switch to vertical if it's horizontal and vice-versa?

This can be scripted; retrieve the current value using yabai -m config <setting> and compare it with whatever, and then run yabai -m config <setting> <new_value>

koekeishiya avatar Sep 19 '22 10:09 koekeishiya

Added on master.

koekeishiya avatar Sep 19 '22 19:09 koekeishiya