# YABAI # # balance space # cmd - 0x2A : yabai -m space --balance # # # resize horizontally - cmd + ,. # cmd - 0x2B : yabai -m window --resize left:-20:0 || yabai -m window --resize right:-20:0 # cmd - 0x2F : yabai -m window --resize left:20:0 || yabai -m window --resize right:20:0 # # # resize vertically # cmd - 0x29 : yabai -m window --resize top:0:-20 || yabai -m window --resize bottom:0:-20 # cmd - 0x27 : yabai -m window --resize top:0:20 || yabai -m window --resize bottom:0:20 # # # focus windows # cmd - 0x21 : yabai -m window --focus prev || yabai -m window --focus first # cmd - 0x1E : yabai -m window --focus next || yabai -m window --focus last # # # swap recent # cmd - 0x2C : yabai -m window --swap prev || yabai -m window --swap first # # # focus spaces # cmd - 0 : yabai -m space --focus first # cmd - 1 : yabai -m space --focus last # cmd - 2 : yabai -m space --focus $(($(yabai -m query --spaces | jq length) - 1)) # cmd - 3 : yabai -m space --focus $(($(yabai -m query --spaces | jq length) - 2)) # cmd - 4 : yabai -m space --focus $(($(yabai -m query --spaces | jq length) - 3)) # cmd - 5 : yabai -m space --focus $(($(yabai -m query --spaces | jq length) - 4)) # cmd - 6 : yabai -m space --focus $(($(yabai -m query --spaces | jq length) - 5)) # cmd - 7 : yabai -m space --focus $(($(yabai -m query --spaces | jq length) - 6)) # cmd - 8 : yabai -m space --focus $(($(yabai -m query --spaces | jq length) - 7)) # cmd - 9 : yabai -m space --focus $(($(yabai -m query --spaces | jq length) - 8)) cmd - 1 : osascript -e 'tell application "Safari" to activate' || open -na "Safari" cmd - 2 : osascript -e 'tell application "iTerm2" to activate' || open -na "iTerm" cmd - 3 : osascript -e 'tell application "Mail" to activate' || open -na "Mail" cmd - 4 : osascript -e 'tell application "Discord" to activate' || open -na "Discord" cmd - 5 : osascript -e 'tell application "Messenger" to activate' || open -na "Messenger" cmd - 8 : osascript -e 'tell application "Music" to activate' || open -na "Music" cmd - 9 : osascript -e 'tell application "REAPER to activate' || open -na "REAPER"