dotfiles/.config/skhd/skhdrc
2024-03-14 08:53:50 +01:00

42 lines
1.7 KiB
Bash
Executable file

#!/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
# 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
# split
ctrl + shift + alt + cmd - h : yabai -m window --warp west
ctrl + shift + alt + cmd - j : yabai -m window --warp south
ctrl + shift + alt + cmd - k : yabai -m window --warp north
ctrl + shift + alt + cmd - l : yabai -m window --warp 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
# 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;
# Revert resized windows to default
ctrl + shift + alt - 0 : yabai -m space --balance
# Rotate windows clockwise
ctrl + shift + alt - y : yabai -m space --rotate 270