# NOTE(koekeishiya): A list of all built-in modifier and literal keywords can # be found at https://github.com/koekeishiya/skhd/issues/1 # # A hotkey is written according to the following rules: # # hotkey = '<' | # # mode = 'name of mode' | ',' # # action = ':' | '->' ':' # ';' | '->' ';' # # keysym = '-' | # # mod = 'built-in mod keyword' | '+' # # key = | # # literal = 'single letter or built-in keyword' # # keycode = 'apple keyboard kVK_ values (0x3C)' # # -> = keypress is not consumed by skhd # # command = command is executed through '$SHELL -c' and # follows valid shell syntax. if the $SHELL environment # variable is not set, it will default to '/bin/bash'. # when bash is used, the ';' delimeter can be specified # to chain commands. # # to allow a command to extend into multiple lines, # prepend '\' at the end of the previous line. # # an EOL character signifies the end of the bind. # # # NOTE(koekeishiya): A mode is declared according to the following rules: # # mode_decl = '::' '@' ':' | '::' ':' | # '::' '@' | '::' # # name = desired name for this mode, # # @ = capture keypresses regardless of being bound to an action # # command = command is executed through '$SHELL -c' and # follows valid shell syntax. if the $SHELL environment # variable is not set, it will default to '/bin/bash'. # when bash is used, the ';' delimeter can be specified # to chain commands. # # to allow a command to extend into multiple lines, # prepend '\' at the end of the previous line. # # an EOL character signifies the end of the bind. # add an on_enter command to the default mode # :: default : chunkc border::color 0xff775759 # # defines a new mode 'test' with an on_enter command, that captures keypresses # :: test @ : chunkc border::color 0xff24ccaa # # from 'default' mode, activate mode 'test' # cmd - x ; test # # from 'test' mode, activate mode 'default' # test < cmd - x ; default # # launch a new terminal instance when in either 'default' or 'test' mode # default, test < cmd - return : open -na /Applications/Terminal.app # open terminal alt - return : open -na /Applications/iTerm.app alt - j : chunkc tiling::window --focus prev alt - k : chunkc tiling::window --focus next shift + alt - j : chunkc tiling:window --warp prev shift + alt - k : chunkc tiling:window --warp next # equalize size of windows shift + alt - 0 : chunkc tiling::desktop --equalize # make floating window fill screen shift + alt - up : chunkc tiling::window --grid-layout 1:1:0:0:1:1 # make floating window fill left-half of screen X shift + alt - left : chunkc tiling::window --grid-layout 1:2:0:0:1:1 # make floating window fill right-half of screen shift + alt - right : chunkc tiling::window --grid-layout 1:2:1:0:1:1 alt - 1 : chunkc tiling::desktop --focus 1 alt - 2 : chunkc tiling::desktop --focus 2 alt - 3 : chunkc tiling::desktop --focus 3 alt - 4 : chunkc tiling::desktop --focus 4 alt - 5 : chunkc tiling::desktop --focus 5 alt - 6 : chunkc tiling::desktop --focus 6 alt - 7 : chunkc tiling::desktop --focus 7 shift + alt - 1 : chunkc tiling::window --send-to-desktop 1; \ chunkc tiling::desktop --focus 1 shift + alt - 2 : chunkc tiling::window --send-to-desktop 2; \ chunkc tiling::desktop --focus 2 shift + alt - 3 : chunkc tiling::window --send-to-desktop 3; \ chunkc tiling::desktop --focus 3 shift + alt - 4 : chunkc tiling::window --send-to-desktop 4; \ chunkc tiling::desktop --focus 4 shift + alt - 5 : chunkc tiling::window --send-to-desktop 5; \ chunkc tiling::desktop --focus 5 shift + alt - 6 : chunkc tiling::window --send-to-desktop 6; \ chunkc tiling::desktop --focus 6 shift + alt - 7 : chunkc tiling::window --send-to-desktop 7; \ chunkc tiling::desktop --focus 7 cmd - w : chunkc tiling::monitor -f prev cmd - e : chunkc tiling::monitor -f next shift + cmd - w : chunkc tiling:window --send-to-monitor prev; \ chunkc tiling::monitor -f prev shift + cmd - e : chunkc tiling:window --send-to-monitor next; \ # toggle window fullscreen shift + cmd - space : chunkc tiling::window --toggle fullscreen # float / unfloat window and center on screen shift + alt + cmd - space : chunkc tiling::window --toggle float;\ chunkc tiling::window --grid-layout 4:4:1:1:2:2 # toggle sticky, float and resize to picture-in-picture size cmd - s : chunkc tiling::window --toggle sticky;\ chunkc tiling::window --grid-layout 5:5:4:0:1:1