home/dot_config/skhd/skhdrc
2022-01-08 22:48:30 +01:00

44 lines
1.4 KiB
Text

# open iterm
alt - return : open -n -a iTerm
# 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
# swap window
alt + lshift - h : yabai -m window --swap west
alt + lshift - j : yabai -m window --swap south
alt + lshift - k : yabai -m window --swap north
alt + lshift - l : yabai -m window --swap east
# balance window size
alt - b : yabai -m space --balance
# fast focus
alt - 1 : yabai -m space --focus 1
alt - 2 : yabai -m space --focus 2
alt - 3 : yabai -m space --focus 3
alt - 4 : yabai -m space --focus 4
alt - 5 : yabai -m space --focus 5
# create and destroy spaces
alt - x : yabai -m space --create
alt + shift - x : yabai -m space --destroy
# send window to space and follow
alt + shift - 1 : yabai -m window --space 1; yabai -m space --focus 1
alt + shift - 2 : yabai -m window --space 2; yabai -m space --focus 2
alt + shift - 3 : yabai -m window --space 3; yabai -m space --focus 3
alt + shift - 4 : yabai -m window --space 4; yabai -m space --focus 4
alt + shift - 5 : yabai -m window --space 5; yabai -m space --focus 5
# float/unfloat window
alt - space : yabai -m window --toggle float
# float/unfloat window and center
alt + shift - space : yabai -m window --toggle float; yabai -m window --grid 4:4:1:1:2:2
# restart yabai
alt - q : brew services restart yabai