#!/bin/sh

# movement
cmd - h : yabai -m window --focus stack.prev || yabai -m window --focus west
cmd - j : yabai -m window --focus south
cmd - k : yabai -m window --focus north
cmd - l : yabai -m window --focus stack.next || yabai -m window --focus east

shift + cmd - h : yabai -m window --warp west
shift + cmd - j : yabai -m window --warp south
shift + cmd - k : yabai -m window --warp north
shift + cmd - l : yabai -m window --warp east

# layouts
shift + cmd - f : yabai -m window --toggle zoom-fullscreen
shift + cmd - t : yabai -m window --toggle split
shift + cmd - b : yabai -m space --balance
shift + cmd - r : yabai -m space --rotate 270
shift + cmd - space : yabai -m window --toggle float
shift + cmd - v : yabai -m window --insert south
shift + cmd - z : yabai -m window --insert east

shift + cmd - s : yabai -m space --layout stack
shift + cmd - w : yabai -m space --layout bsp
shift + cmd - x : yabai -m space --layout float

# apps
cmd - return : open -n -a ghostty

# move to spaces
cmd + shift - 1 : yabai -m window --space 1
cmd + shift - 2 : yabai -m window --space 2
cmd + shift - 3 : yabai -m window --space 3
cmd + shift - 4 : yabai -m window --space 4
cmd + shift - 5 : yabai -m window --space 5
cmd + shift - 6 : yabai -m window --space 6

# resizing
ctrl + cmd - h : yabai -m window --resize left:-40:0 ; yabai -m window --resize right:-40:0
ctrl + cmd - j : yabai -m window --resize bottom:0:40 ; yabai -m window --resize top:0:40
ctrl + cmd - k : yabai -m window --resize top:0:-40 ; yabai -m window --resize bottom:0:-40
ctrl + cmd - l : yabai -m window --resize right:40:0 ; yabai -m window --resize left:40:0


