diff options
author | koekeishiya <aasvi93@hotmail.com> | 2018-01-07 19:51:44 +0100 |
---|---|---|
committer | koekeishiya <aasvi93@hotmail.com> | 2018-01-07 19:51:44 +0100 |
commit | b7bbd626ebfdfc0b27b89d18abec5ba65310b783 (patch) | |
tree | 28bbf99a943f2747adcf913f9b44318b30b6722b /examples/skhdrc | |
parent | de631681a6742fa2dcf1704476baf5c7bc9d0885 (diff) | |
download | skhd-b7bbd626ebfdfc0b27b89d18abec5ba65310b783.tar.gz skhd-b7bbd626ebfdfc0b27b89d18abec5ba65310b783.zip |
#15 update readme and sample config
Diffstat (limited to '')
-rw-r--r-- | examples/skhdrc | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/examples/skhdrc b/examples/skhdrc index e6864e7..f10eb81 100644 --- a/examples/skhdrc +++ b/examples/skhdrc @@ -3,8 +3,12 @@ # # A hotkey is written according to the following rules: # -# hotkey = <keysym> ':' <command> | -# <keysym> '->' ':' <command> +# hotkey = <mode> '<' <action> | <action> +# +# mode = 'name of mode' | <mode> ',' <mode> +# +# action = <keysym> ':' <command> | <keysym> '->' ':' <command> +# <keysym> ';' <mode> | <keysym> '->' ';' <mode> # # keysym = <mod> '-' <key> | <key> # @@ -28,6 +32,24 @@ # prepend '\' at the end of the previous line. # # an EOL character signifies the end of the bind. +# +# +# NOTE(koekeishiya): Modal operations +# +# defines a new mode 'switcher' with an on_enter command +# :: switcher : chunkc border::color 0xff24ccaa +# +# defines a new mode named 'test' +# :: test +# +# 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, blazingly fast compared to iTerm/Hyper |