mirror of
https://github.com/correl/dotfiles.git
synced 2024-12-23 03:00:08 +00:00
104 lines
4.3 KiB
Text
104 lines
4.3 KiB
Text
# 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> '<' <action> | <action>
|
|
#
|
|
# mode = 'name of mode' | <mode> ',' <mode>
|
|
#
|
|
# action = <keysym> ':' <command> | <keysym> '->' ':' <command>
|
|
# <keysym> ';' <mode> | <keysym> '->' ';' <mode>
|
|
#
|
|
# keysym = <mod> '-' <key> | <key>
|
|
#
|
|
# mod = 'built-in mod keyword' | <mod> '+' <mod>
|
|
#
|
|
# key = <literal> | <keycode>
|
|
#
|
|
# literal = 'single letter or built-in keyword'
|
|
#
|
|
# keycode = 'apple keyboard kVK_<Key> 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> '@' ':' <command> | '::' <name> ':' <command> |
|
|
# '::' <name> '@' | '::' <name>
|
|
#
|
|
# 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
|
|
shift + alt - return : open -na /Applications/iTerm.app
|
|
|
|
alt - j : chunkc tiling::window --focus next
|
|
alt - k : chunkc tiling::window --focus prev
|
|
|
|
shift + alt - j : chunkc tiling::window --warp next
|
|
shift + alt - k : chunkc tiling::window --warp prev
|
|
|
|
alt - r : chunkc tiling::desktop --rotate 90
|
|
shift + alt -r : chunkc tiling::desktop --rotate 270
|
|
|
|
cmd - return : chunkc tiling::window --swap biggest
|
|
|
|
# equalize size of windows
|
|
shift + alt - 0 : chunkc tiling::desktop --equalize
|
|
|
|
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
|