diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/skhdrc | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/examples/skhdrc b/examples/skhdrc index 59f3c2f..f472e3e 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 @@ -80,6 +102,17 @@ shift + alt - 4 : chunkc tiling::window --send-to-desktop 4 shift + alt - 5 : chunkc tiling::window --send-to-desktop 5 shift + alt - 6 : chunkc tiling::window --send-to-desktop 6 +# send window to desktop and follow focus +shift + cmd - x : chunkc tiling::window --send-to-desktop $(chunkc get _last_active_desktop) +shift + cmd - z : chunkc tiling::window --send-to-desktop prev; qes -k "cmd + alt - z" +shift + cmd - c : chunkc tiling::window --send-to-desktop next; qes -k "cmd + alt - c" +shift + cmd - 1 : chunkc tiling::window --send-to-desktop 1; qes -k "cmd + alt - 1" +shift + cmd - 2 : chunkc tiling::window --send-to-desktop 2; qes -k "cmd + alt - 2" +shift + cmd - 3 : chunkc tiling::window --send-to-desktop 3; qes -k "cmd + alt - 3" +shift + cmd - 4 : chunkc tiling::window --send-to-desktop 4; qes -k "cmd + alt - 4" +shift + cmd - 5 : chunkc tiling::window --send-to-desktop 5; qes -k "cmd + alt - 5" +shift + cmd - 6 : chunkc tiling::window --send-to-desktop 6; qes -k "cmd + alt - 6" + # focus monitor ctrl + alt - z : chunkc tiling::monitor -f prev ctrl + alt - c : chunkc tiling::monitor -f next @@ -157,3 +190,7 @@ ctrl + alt - s : chunkc tiling::desktop --layout monocle ctrl + alt - d : chunkc tiling::desktop --layout float ctrl + alt - w : chunkc tiling::desktop --deserialize ~/.chunkwm_layouts/dev_1 + +cmd - 7 : qes -k "shift + alt - 7" +cmd - 8 : qes -k "shift + alt - 8" +cmd - 9 : qes -k "shift + alt - 9" |