|
| 1 | +# ------------------Windows------------------ |
| 2 | + |
| 3 | +# change window focus within space |
| 4 | +alt - j : yabai -m window --focus south |
| 5 | +alt - k : yabai -m window --focus north |
| 6 | +alt - h : yabai -m window --focus west |
| 7 | +alt - l : yabai -m window --focus east |
| 8 | + |
| 9 | +# swap windows |
| 10 | +shift + alt - j : yabai -m window --swap south |
| 11 | +shift + alt - k : yabai -m window --swap north |
| 12 | +shift + alt - h : yabai -m window --swap west |
| 13 | +shift + alt - l : yabai -m window --swap east |
| 14 | + |
| 15 | +# move window and split |
| 16 | +ctrl + alt - j : yabai -m window --warp south |
| 17 | +ctrl + alt - k : yabai -m window --warp north |
| 18 | +ctrl + alt - h : yabai -m window --warp west |
| 19 | +ctrl + alt - l : yabai -m window --warp east |
| 20 | + |
| 21 | +# move window to prev and next space |
| 22 | +shift + alt - p : yabai -m window --space prev; |
| 23 | +shift + alt - n : yabai -m window --space next; |
| 24 | + |
| 25 | +# maximize a window |
| 26 | +shift + alt - m : yabai -m window --toggle zoom-fullscreen |
| 27 | +shift + alt - u : yabai -m window --toggle zoom-parent |
| 28 | + |
| 29 | +# resize terminal |
| 30 | +ctrl + alt - t : yabai -m window --toggle float && yabai -m window --resize abs:1744:1097 |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | +# ------------------Space layouts------------------ |
| 35 | + |
| 36 | +# toggle layouts |
| 37 | +alt - e : yabai -m space --layout bsp |
| 38 | +alt - d : yabai -m space --layout stack |
| 39 | +alt - s : yabai -m space --layout float |
| 40 | + |
| 41 | +# rotate layout clockwise |
| 42 | +shift + alt - r : yabai -m space --rotate 270 |
| 43 | + |
| 44 | +# flip along y-axis |
| 45 | +shift + alt - y : yabai -m space --mirror y-axis |
| 46 | + |
| 47 | +# flip along x-axis |
| 48 | +shift + alt - x : yabai -m space --mirror x-axis |
| 49 | + |
| 50 | +# balance out tree of windows (resize to occupy same area) |
| 51 | +shift + alt - e : yabai -m space --balance |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | +# ------------------Sizes------------------ |
| 56 | + |
| 57 | +# increase window size |
| 58 | +alt + shift - w : yabai -m window --resize top:0:-5 |
| 59 | +alt + shift - a : yabai -m window --resize left:-5:0 |
| 60 | +alt + shift - s : yabai -m window --resize bottom:0:5 |
| 61 | +alt + shift - d : yabai -m window --resize right:5:0 |
| 62 | + |
| 63 | +# decrease window size |
| 64 | +cmd + shift - w : yabai -m window --resize top:0:5 |
| 65 | +cmd + shift - a : yabai -m window --resize left:5:0 |
| 66 | +cmd + shift - s : yabai -m window --resize bottom:0:-5 |
| 67 | +cmd + shift - d : yabai -m window --resize right:-5:0 |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | +# ------------------Spaces------------------ |
| 72 | + |
| 73 | +# move window to space ... |
| 74 | +shift + alt - 1 : yabai -m window --space 1; |
| 75 | +shift + alt - 2 : yabai -m window --space 2; |
| 76 | +shift + alt - 3 : yabai -m window --space 3; |
| 77 | +shift + alt - 4 : yabai -m window --space 4; |
| 78 | +shift + alt - 5 : yabai -m window --space 5; |
| 79 | +shift + alt - 6 : yabai -m window --space 6; |
| 80 | +shift + alt - 7 : yabai -m window --space 7; |
| 81 | + |
| 82 | +# focus on space ... |
| 83 | +ctrl + alt - 1 : yabai -m space --focus 1; |
| 84 | +ctrl + alt - 2 : yabai -m space --focus 2; |
| 85 | +ctrl + alt - 3 : yabai -m space --focus 3; |
| 86 | +ctrl + alt - 4 : yabai -m space --focus 4; |
| 87 | +ctrl + alt - 5 : yabai -m space --focus 5; |
| 88 | +ctrl + alt - 6 : yabai -m space --focus 6; |
| 89 | +ctrl + alt - 7 : yabai -m space --focus 7; |
| 90 | + |
| 91 | +# Create space on the active display |
| 92 | +ctrl + alt - return : yabai -m space --create |
| 93 | + |
| 94 | +# Delete focused space and focus first space on display |
| 95 | +ctrl + alt - backspace : yabai -m space --destroy |
| 96 | + |
| 97 | +# Move space left |
| 98 | +ctrl + shift + alt - h : yabai -m space --move prev |
| 99 | + |
| 100 | +# Move space right |
| 101 | +ctrl + shift + alt - l : yabai -m space --move next |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | +# ------------------Services------------------ |
| 106 | + |
| 107 | +# stop/start/restart yabai |
| 108 | +ctrl + alt - q : yabai --stop-service |
| 109 | +ctrl + alt - s : yabai --start-service |
| 110 | +ctrl + alt - r : yabai --restart-service |
| 111 | + |
0 commit comments