Created
January 22, 2025 21:48
-
-
Save azhang/681dfa5a9e017bd479b70eff70fe4c42 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.blacklist [ | |
"terminal" | |
"kitty" | |
"qutebrowser" | |
] | |
# Window focus - alt + vim keys | |
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 | |
# Window swap - alt + shift + vim keys | |
alt + shift - h : yabai -m window --swap west | |
alt + shift - j : yabai -m window --swap south | |
alt + shift - k : yabai -m window --swap north | |
alt + shift - l : yabai -m window --swap east | |
# Window warp (move instead of swap) - alt + shift + movement | |
alt + shift - left : yabai -m window --warp west | |
alt + shift - down : yabai -m window --warp south | |
alt + shift - up : yabai -m window --warp north | |
alt + shift - right : yabai -m window --warp east | |
# Window resize - meh (shift + alt + ctrl) + arrows for less conflicts | |
meh - left : yabai -m window --resize left:-50:0; yabai -m window --resize right:-50:0 | |
meh - down : yabai -m window --resize bottom:0:50; yabai -m window --resize top:0:50 | |
meh - up : yabai -m window --resize top:0:-50; yabai -m window --resize bottom:0:-50 | |
meh - right : yabai -m window --resize right:50:0; yabai -m window --resize left:50:0 | |
# Fine-grained resize - alt + shift + wasd | |
alt + shift - a : yabai -m window --resize left:-20:0 | |
alt + shift - s : yabai -m window --resize bottom:0:20 | |
alt + shift - w : yabai -m window --resize top:0:-20 | |
alt + shift - d : yabai -m window --resize right:20:0 | |
# Window states - alt + single keys | |
alt - f : yabai -m window --toggle zoom-fullscreen # (f)ullscreen | |
alt - t : yabai -m window --toggle float;\ | |
yabai -m window --grid 4:4:1:1:2:2 # (t)oggle float + center | |
alt - e : yabai -m window --toggle split # toggle split orientation | |
alt - z : yabai -m window --toggle zoom-parent # (z)oom to parent container | |
# Quick grid presets | |
alt - g : yabai -m window --grid 1:1:0:0:1:1 # full screen | |
alt - v : yabai -m window --grid 1:2:0:0:1:1 # left half | |
alt - b : yabai -m window --grid 1:2:1:0:1:1 # right half | |
# Layout commands - alt + shift + single keys | |
alt + shift - b : yabai -m space --balance # (b)alance | |
alt + shift - r : yabai -m space --rotate 90 # (r)otate | |
# Move window to space - alt + shift + number | |
alt + shift - 1 : yabai -m window --space 1 | |
alt + shift - 2 : yabai -m window --space 2 | |
alt + shift - 3 : yabai -m window --space 3 | |
alt + shift - 4 : yabai -m window --space 4 | |
alt + shift - 5 : yabai -m window --space 5 | |
# Move window to display - alt + shift + d/f | |
alt + shift - d : yabai -m window --display prev || yabai -m window --display last | |
alt + shift - f : yabai -m window --display next || yabai -m window --display first | |
# Quick restart - hyper + 0 | |
hyper - 0 : launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai" | |
# Application shortcuts - ctrl + alt + shift + key | |
# Number-based shortcuts (for muscle memory) | |
ctrl + alt + shift - return : open /Applications/kitty.app | |
ctrl + alt + shift - 1 : open /Applications/Logseq.app | |
ctrl + alt + shift - 2 : open /Applications/Superhuman.app | |
ctrl + alt + shift - 3 : open /Applications/Notion\ Calendar.app | |
ctrl + alt + shift - 4 : open /Applications/Notion.app | |
ctrl + alt + shift - 5 : open /Applications/Discord.app | |
ctrl + alt + shift - 6 : open /Applications/kitty.app | |
# Mnemonic shortcuts (alternative options) | |
ctrl + alt + shift - l : open /Applications/Logseq.app # (l)ogseq | |
ctrl + alt + shift - m : open /Applications/Superhuman.app # (m)ail | |
ctrl + alt + shift - c : open /Applications/Notion\ Calendar.app # (c)alendar | |
ctrl + alt + shift - n : open /Applications/Notion.app # (n)otion | |
ctrl + alt + shift - d : open /Applications/Discord.app # (d)iscord |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment