aboutsummaryrefslogtreecommitdiff
path: root/examples/skhdrc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/skhdrc')
-rw-r--r--examples/skhdrc30
1 files changed, 28 insertions, 2 deletions
diff --git a/examples/skhdrc b/examples/skhdrc
index 27a34f3..411ceb3 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
@@ -171,3 +193,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"