summaryrefslogtreecommitdiffstats
path: root/users/ericgebhart/defs/nshot.def
diff options
context:
space:
mode:
authorlokher <lokher@gmail.com>2022-12-06 17:04:10 +0800
committerlokher <lokher@gmail.com>2022-12-06 17:04:10 +0800
commit27fc28fd2ff52e079a5bc58d6aaea4c752420615 (patch)
tree7ac943fb1ba4f430a7220efd18f66f6a77205c30 /users/ericgebhart/defs/nshot.def
parente736133392fe6427cfb995da0787337189828272 (diff)
parent2709b6ed616f8012ff4cfd3ee69a822a8d188351 (diff)
Merge upstream master
Diffstat (limited to 'users/ericgebhart/defs/nshot.def')
-rw-r--r--users/ericgebhart/defs/nshot.def45
1 files changed, 45 insertions, 0 deletions
diff --git a/users/ericgebhart/defs/nshot.def b/users/ericgebhart/defs/nshot.def
new file mode 100644
index 0000000000..79559534c7
--- /dev/null
+++ b/users/ericgebhart/defs/nshot.def
@@ -0,0 +1,45 @@
+// Define keycodes in custom keys.
+// KEYCode, mod keycode, to set for n-shot.
+// ONESHOT is for one.
+// NSHOT takes a count.
+
+// oneshots
+ONESHOT(OS_LSFT, KC_LSFT)
+ONESHOT(OS_LCTL, KC_LCTL)
+ONESHOT(OS_LALT, KC_LALT)
+ONESHOT(OS_LGUI, KC_LGUI)
+
+ONESHOT(OS_RSFT, KC_RSFT)
+ONESHOT(OS_RCTL, KC_RCTL)
+ONESHOT(OS_RALT, KC_RALT)
+ONESHOT(OS_RGUI, KC_RGUI)
+
+// N-Shots
+NSHOT(TS_LCTL, KC_LCTL, 2)
+NSHOT(TS_RCTL, KC_RCTL, 2)
+
+// Keys which will cancel the n-shots.
+CANCEL_KEY( PANIC)
+CANCEL_KEY( CLEAR)
+//CANCEL_KEY( THM_LH0)
+//CANCEL_KEY( THM_LH1)
+//CANCEL_KEY( THM_RH0)
+//CANCEL_KEY( THM_RH1)
+
+// inherited from @possumvibes, keeping for now.
+// Keys which will be ignored by n-shots.
+//IGNORE_KEY( THM_LH0)
+//IGNORE_KEY( THM_LH1)
+//IGNORE_KEY( THM_RH0)
+//IGNORE_KEY( THM_RH1)
+//IGNORE_KEY( SYM_OSL)
+//IGNORE_KEY( SYM_TG)
+//IGNORE_KEY( NAV_TG)
+//IGNORE_KEY( NUM_OSL)
+//IGNORE_KEY( NUM_TO)
+//IGNORE_KEY( FUN_OSL)
+//IGNORE_KEY( ALPHA)
+IGNORE_KEY( SML_NAV)
+IGNORE_KEY( SPC_TOPR)
+// IGNORE_KEY( SML_KEYPAD)
+//IGNORE_KEY( SML_TOPROWS)