aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjack <[email protected]>2022-08-25 12:04:38 -0600
committerjack <[email protected]>2022-08-25 12:04:38 -0600
commitf4117408ceeaf26446b931f9c374363984f174f7 (patch)
treee9dc6f5d80df7ebbfe661b18ab47028146e5f7ec
parentfcf2661bf94b4ac2406cceec359f342b68c7e8f3 (diff)
downloadzmk_build-f4117408ceeaf26446b931f9c374363984f174f7.tar.gz
zmk_build-f4117408ceeaf26446b931f9c374363984f174f7.zip
add combo tap dances
-rw-r--r--config/corne.keymap32
1 files changed, 27 insertions, 5 deletions
diff --git a/config/corne.keymap b/config/corne.keymap
index 7378591..59ea319 100644
--- a/config/corne.keymap
+++ b/config/corne.keymap
@@ -53,6 +53,30 @@
tapping-term-ms = <120>;
bindings = <&kp C_PLAY>, <&kp C_NEXT>, <&kp C_PREV>;
};
+
+ cbrkt: curly_bracket {
+ compatible = "zmk,behavior-tap-dance";
+ label = "CURLY_BRACKET";
+ #binding-cells = <0>;
+ tapping-term-ms = <120>;
+ bindings = <&kp LBRC>, <&kp RBRC>;
+ };
+
+ sbrkt: square_bracket {
+ compatible = "zmk,behavior-tap-dance";
+ label = "SQUARE_BRACKET";
+ #binding-cells = <0>;
+ tapping-term-ms = <120>;
+ bindings = <&kp LBKT>, <&kp RBKT>;
+ };
+
+ bslspipe: backslash_pipe {
+ compatible = "zmk,behavior-tap-dance";
+ label = "BACKSLASH_PIPE";
+ #binding-cells = <0>;
+ tapping-term-ms = <120>;
+ bindings = <&kp BSLH>, <&kp PIPE>;
+ };
};
macros {
@@ -69,11 +93,9 @@
COMBO(ENTR, &kp RET, 4 7)
COMBO(QUOT, &kp SQT, 17 18)
COMBO(DQUO, &kp DQT, 27 32)
- COMBO(LBRC, &kp LBRC, 3 4)
- COMBO(RBRC, &kp RBRC, 4 5)
- COMBO(LBKT, &kp LBKT, 6 7)
- COMBO(RBKT, &kp RBKT, 7 8)
- COMBO(BKSL, &kp BSLH, 3 8)
+ COMBO(LBRC, &cbrkt, 3 4)
+ COMBO(RBKT, &sbrkt, 7 8)
+ COMBO(BKSL, &bslspipe, 3 8)
COMBO(COLN, &kp COLON, 5 6)
COMBO(PLUS, &kp PLUS, 14 21)
COMBO(QUES, &kp QMARK, 28 31)