summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-01-20 07:46:29 -0500
committerKjetil Orbekk <kj@orbekk.com>2022-01-20 07:46:29 -0500
commitdc389c87337a3dfd2620b00e0aea2d035324878a (patch)
tree6275f5612c46200530b63e7205016a2aa28ab9c3
parent44686c17f958e6aa0093276037424d649e9e30c9 (diff)
Add quick release to sticky shift to avoid typing multiple capital letters
-rw-r--r--config/planck_rev6.keymap21
1 files changed, 15 insertions, 6 deletions
diff --git a/config/planck_rev6.keymap b/config/planck_rev6.keymap
index 7bfc14d..0eb0404 100644
--- a/config/planck_rev6.keymap
+++ b/config/planck_rev6.keymap
@@ -45,6 +45,15 @@
flavor = "tap-preferred";
bindings = <&kp>, <&kp>;
};
+
+ sq: sticky_key_quick_release {
+ compatible = "zmk,behavior-sticky-key";
+ label = "STICKY_KEY_QUICK_RELEASE";
+ #binding-cells = <1>;
+ bindings = <&kp>;
+ release-after-ms = <1000>;
+ quick-release;
+ };
};
keymap {
@@ -74,7 +83,7 @@
lower {
bindings = <
&trans &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp STAR &kp LPAR &kp RPAR &trans
-&trans &sk LGUI &sk LALT &sk LCTL &sk LSHFT &kp BSLH &kp LBKT &kp DQT &kp RBRC &kp UNDER &kp PLUS &trans
+&trans &sk LGUI &sk LALT &sk LCTL &sq LSHFT &kp BSLH &kp LBKT &kp DQT &kp RBRC &kp UNDER &kp PLUS &trans
&trans &kp GRAVE &kp TILDE &kp TAB &kp ESC &kp PIPE &kp LBRC &kp SQT &kp RBKT &kp MINUS &kp EQUAL &trans
&trans &trans &trans &trans &trans &kp SPACE &kp SPACE &kp TILDE &kp GRAVE &trans &trans &trans
>;
@@ -83,7 +92,7 @@
upper {
bindings = <
&trans &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &trans
-&trans &trans &trans &trans &trans &trans &kp BSPC &sk LSHFT &sk LCTL &sk LALT &sk LGUI &trans
+&trans &trans &trans &trans &trans &trans &kp BSPC &sq LSHFT &sk LCTL &sk LALT &sk LGUI &trans
&trans &trans &trans &trans &trans &trans &kp RALT &kp RET &kp DEL &trans &trans &trans
&trans &trans &trans &trans &mo FN &kp SPACE &kp SPACE &trans &trans &trans &trans &trans
>;
@@ -100,10 +109,10 @@
function {
bindings = <
-&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &trans
-&trans &kp F11 &kp F12 &trans &trans &trans &trans &trans &trans &trans &trans &trans
-&trans &bootloader &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
-&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
+&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &trans
+&trans &kp F11 &kp F12 &trans &caps_word &trans &trans &caps_word &trans &trans &trans &trans
+&trans &bootloader &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
+&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;
};
};