brew services restart yabai
brew services restart skhd
killall Dock
# Open terminal | |
shift + alt - return : /Applications/iTerm.app/Contents/MacOS/iTerm2 --single-instance -d "/Users/samundra" | |
# change size of window | |
shift + alt - w : yabai -m window --resize top:0:-20 ; yabai -m window --resize bottom:0:-20 | |
shift + alt - a : yabai -m window --resize left:-20:0 ; yabai -m window --resize right:-20:0 | |
shift + alt - s : yabai -m window --resize bottom:0:20 ; yabai -m window --resize top:0:20 | |
shift + alt - d : yabai -m window --resize right:20:0 ; yabai -m window --resize left:20:0 | |
shift + alt - r : yabai -m window --resize right:100:0 | |
shift + alt - l : yabai -m window --resize left:-100:0 | |
# focus window | |
# alt - h : yabai -m window --focus west | |
# alt - j : yabai -m window --focus south | |
# alt - k : yabai -m window --focus north | |
# alt - l : yabai -m window --focus east | |
# Focus monitor | |
alt - 1 : yabai -m space --focus 2 | |
alt - 2 : yabai -m space --focus 3 | |
alt - 3 : yabai -m space --focus 4 | |
alt - 4 : yabai -m space --focus 5 | |
# send window to monitor and follow focus | |
shift + alt - 1 : yabai -m window --display 1; yabai -m display --focus 1 | |
shift + alt - 2 : yabai -m window --display 2; yabai -m display --focus 2 | |
shift + alt - 3 : yabai -m window --display 3; yabai -m display --focus 3 | |
# rotate tree | |
# shift + alt - r : yabai -m space --rotate 90 | |
# toggle window zoom fullscreen | |
# alt - f : yabai -m window --toggle zoom-fullscreen | |
# toggle window native fullscreen | |
alt - f : yabai -m window --toggle native-fullscreen | |
# toggle sticky | |
alt - s : yabai -m window --toggle sticky | |
# toggle topmost | |
alt - t : yabai -m window --toggle topmost | |
# toggle window split type | |
alt - e : yabai -m window --toggle split | |
# float / unfloat window and center on screen | |
shift + alt - c : yabai -m window --grid 1:1:0:0:1:1;\ | |
yabai -m window --toggle float;\ | |
yabai -m window --resize top_left:150:0;yabai -m window --resize top_right:200:50;\ | |
yabai -m window --resize bottom_left:0:-120;yabai -m window --resize bottom_right:-120:0; | |
# make floating window fill screen | |
shift + alt - f : yabai -m window --grid 1:1:0:0:1:1 | |
# focus spaces | |
# shift + alt - 0 : yabai -m space --focus 1 | |
# shift + alt - 0 : yabai -m space --balance | |
# shift + alt - 9 : yabai -m space --focus 2 | |
# make floating window fill left-half of screen | |
shift + alt - left : yabai -m window --grid 1:2:0:0:1:1 | |
# make floating window fill right-half of screen | |
shift + alt - right : yabai -m window --grid 1:2:1:0:1:1 | |
# make floating window fill top-half of screen | |
shift + alt - up : yabai -m window --grid 2:1:1:0:1:1 | |
# make floating window fill bottom-half of screen | |
shift + alt - down : yabai -m window --grid 2:1:0:2:1:1 | |
# send window to desktop and follow focus | |
shift + alt - u : yabai -m window --space recent; yabai -m space --focus recent | |
shift + alt - p : yabai -m window --space prev; yabai -m space --focus prev | |
shift + alt - n : yabai -m window --space next; yabai -m space --focus next | |
# fn + shift - c : yabai -m window --space next; yabai -m space --focus next | |
# fn + shift - 1 : yabai -m window --space 1; yabai -m space --focus 1 | |
# fn + shift - 2 : yabai -m window --space 2; yabai -m space --focus 2 | |
# fn + shift - 3 : yabai -m window --space 3; yabai -m space --focus 3 | |
# fn + shift - 4 : yabai -m window --space 4; yabai -m space --focus 4 | |
# fn + shift - 5 : yabai -m window --space 5; yabai -m space --focus 5 | |
# fn + shift - 6 : yabai -m window --space 6; yabai -m space --focus 6 | |
# toggle sticky, float and resize to picture-in-picture size | |
alt - p : yabai -m window --toggle sticky;\ | |
yabai -m window --toggle topmost;\ | |
yabai -m window --toggle pip | |
shift + alt - b : yabai -m window --toggle border | |
# Save in ~/.yabairc | |
yabai -m config debug_output on |