From 8c1a567dc93697f60b33cc60066a234df7e0e1ca Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Thu, 30 Aug 2018 17:27:55 +0200 Subject: update readme and sample config --- examples/skhdrc | 66 ++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 40 insertions(+), 26 deletions(-) (limited to 'examples') diff --git a/examples/skhdrc b/examples/skhdrc index c7658c2..5336e71 100644 --- a/examples/skhdrc +++ b/examples/skhdrc @@ -3,36 +3,42 @@ # # A hotkey is written according to the following rules: # -# hotkey = '<' | +# hotkey = '<' | # -# mode = 'name of mode' | ',' +# mode = 'name of mode' | ',' # -# action = ':' | '->' ':' -# ';' | '->' ';' +# action = '[' ']' | '->' '[' ']' +# ':' | '->' ':' +# ';' | '->' ';' # -# keysym = '-' | +# keysym = '-' | # -# mod = 'built-in mod keyword' | '+' +# mod = 'modifier keyword' | '+' # -# key = | +# key = | # -# literal = 'single letter or built-in keyword' +# literal = 'single letter or built-in keyword' # -# keycode = 'apple keyboard kVK_ values (0x3C)' +# keycode = 'apple keyboard kVK_ values (0x3C)' # -# -> = keypress is not consumed by skhd +# proc_map_lst = * # -# 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. +# proc_map = ':' # -# to allow a command to extend into multiple lines, -# prepend '\' at the end of the previous line. +# string = '"' 'sequence of characters' '"' # -# an EOL character signifies the end of the bind. +# 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. +# +# -> = keypress is not consumed by skhd # # NOTE(koekeishiya): A mode is declared according to the following rules: # @@ -43,16 +49,16 @@ # # @ = 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. +# 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. +# 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. +# an EOL character signifies the end of the bind. # add an on_enter command to the default mode # :: default : chunkc border::color 0xff775759 @@ -69,6 +75,14 @@ # launch a new terminal instance when in either 'default' or 'test' mode # default, test < cmd - return : open -na /Applications/Terminal.app +# application specific bindings +# +# cmd - n [ +# "kitty" : echo "hello kitty" +# "qutebrowser" : echo "hello qutebrowser" +# "finder" : false +# ] + # open terminal, blazingly fast compared to iTerm/Hyper cmd - return : /Applications/Kitty.app/Contents/MacOS/kitty --single-instance -d ~ -- cgit v1.2.3