Replies: 3 comments
-
|
Would love this as well. Does yabai have custom layours? |
Beta Was this translation helpful? Give feedback.
-
|
The only way I think you could implement this particular layout in yabai is with a script like this. You would have to open 5 windows in the space then trigger the script (e.g. through skhd). This would put the space in float mode and you would lose BSP/padding if resizing windows etc. #!/usr/bin/env bash
# Custom layout: top row (2/3 + 1/3), bottom row (3 equal)
# Toggles back to BSP if already in float mode
current_layout=$(yabai -m query --spaces --space | jq -r '.type')
if [[ "$current_layout" == "float" ]]; then
yabai -m space --layout bsp
exit 0
fi
windows=($(yabai -m query --windows --space | jq -r '[.[] | select(."is-minimized" == false)] | sort_by(.frame.x, .frame.y) | .[].id'))
count=${#windows[@]}
yabai -m space --layout float
if [[ $count -eq 2 ]]; then
yabai -m window ${windows[0]} --grid 1:3:0:0:2:1
yabai -m window ${windows[1]} --grid 1:3:2:0:1:1
elif [[ $count -eq 3 ]]; then
yabai -m window ${windows[0]} --grid 2:6:0:0:4:1
yabai -m window ${windows[1]} --grid 2:6:4:0:2:1
yabai -m window ${windows[2]} --grid 2:1:0:1:1:1
elif [[ $count -eq 4 ]]; then
yabai -m window ${windows[0]} --grid 2:6:0:0:4:1
yabai -m window ${windows[1]} --grid 2:6:4:0:2:1
yabai -m window ${windows[2]} --grid 2:2:0:1:1:1
yabai -m window ${windows[3]} --grid 2:2:1:1:1:1
else
yabai -m window ${windows[0]} --grid 2:6:0:0:4:1
yabai -m window ${windows[1]} --grid 2:6:4:0:2:1
yabai -m window ${windows[2]} --grid 2:3:0:1:1:1
yabai -m window ${windows[3]} --grid 2:3:1:1:1:1
yabai -m window ${windows[4]} --grid 2:3:2:1:1:1
fiIn |
Beta Was this translation helpful? Give feedback.
-
|
Here is a starting point. This script applies settings for the next window by window count on the current space. Sorry I am a bit lazy right now to explain it fully. I believe you can manage the rest for yourself or with the help of an LLM. Notice that it works properly only when you open windows one by one. When yabai restarts, it will place them by the startup settings for yabai, but that is manageable in your case ( sort of ) by setting the initial rule for split_ratio in .yabairc .yabairc yabai-panes |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. Can you please tell me if I can get something similar to the leyout aka in the picture?

I bought a 48 inch monitor and I think it would be useful to use two rows and three columns - in the first row one window should take up two columns, all other windows should be one column each
Beta Was this translation helpful? Give feedback.
All reactions