#!/usr/bin/env bash # # I have set the "FN" key on my Planck to the "Meh" action which just fires # the Ctrl+Shift+Alt key combo which helps here to have unique skhd shortcuts # that don't clash with macOS/Neovim/... # Focus a 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 # Zoom a window ctrl + shift + alt - f : yabai -m window --toggle zoom-fullscreen # Move window and split (current desktop) #ctrl + shift + alt - h : yabai -m window --warp west #ctrl + shift + alt - j : yabai -m window --warp south #ctrl + shift + alt - k : yabai -m window --warp north #ctrl + shift + alt - l : yabai -m window --warp east # Swap windows ctrl + shift + alt - h : yabai -m window --swap west ctrl + shift + alt - j : yabai -m window --swap south ctrl + shift + alt - k : yabai -m window --swap north ctrl + shift + alt - l : yabai -m window --swap east # Move window to other desktop and focus desktop ctrl + shift + alt - 1 : yabai -m window --space 1; yabai -m space --focus 1 ctrl + shift + alt - 2 : yabai -m window --space 2; yabai -m space --focus 2 ctrl + shift + alt - 3 : yabai -m window --space 3; yabai -m space --focus 3 ctrl + shift + alt - 4 : yabai -m window --space 4; yabai -m space --focus 4 ctrl + shift + alt - 4 : yabai -m window --space 4; yabai -m space --focus 5 # Move window to display left and right ctrl + shift + alt - r : yabai -m window --display west; yabai -m display --focus west; ctrl + shift + alt - u : yabai -m window --display east; yabai -m display --focus east;