From 4a93dacac68386ef6aae26d7bacfd6e8b1fa50e1 Mon Sep 17 00:00:00 2001 From: Leo B <404293+soundmonster@users.noreply.github.com> Date: Fri, 5 Jan 2024 18:25:53 +0100 Subject: [PATCH] Require prior idle 125ms for faster typing --- config/corne.keymap | 60 +++++++++++++++++++++++++++++++++++++++------ 1 file changed, 53 insertions(+), 7 deletions(-) diff --git a/config/corne.keymap b/config/corne.keymap index b77588b..07c3518 100644 --- a/config/corne.keymap +++ b/config/corne.keymap @@ -4,6 +4,16 @@ * SPDX-License-Identifier: MIT */ +/* + * This is a keymap for Samoklava, a Corne-compatible wireless keyboard. You can use this keymap with a Corne as well. + * To compile, run these commands: + * + * west build -d build/left -b nice_nano_v2 -- -DSHIELD=corne_left -DZMK_CONFIG='../../samoklava-zmk-config/config' + * west build -d build/right -b nice_nano_v2 -- -DSHIELD=corne_right -DZMK_CONFIG='../../samoklava-zmk-config/config' + * cp build/left/zephyr/zmk.uf2 ~/Desktop/left.uf2 + * cp build/right/zephyr/zmk.uf2 ~/Desktop/right.uf2 + */ + #include #include #include @@ -40,8 +50,26 @@ label = "HOMEROW_MODS_LEFT"; #binding-cells = <2>; flavor = "tap-preferred"; - tapping-term-ms = <250>; - quick-tap-ms = <180>; + tapping-term-ms = <200>; + quick-tap-ms = <200>; + require-prior-idle-ms = <120>; + bindings = <&kp>, <&kp>; + hold-trigger-key-positions = < + 6 7 8 9 10 + 13 14 15 16 18 19 20 21 22 + 26 30 31 32 33 34 + 36 37 38 39 40 41 + >; // <---[[right-hand keys + all homerow mods + all thumbs]] + }; + + hsl: homerow_shift_left { + compatible = "zmk,behavior-hold-tap"; + label = "HOMEROW_SHIFT_LEFT"; + #binding-cells = <2>; + flavor = "tap-preferred"; + tapping-term-ms = <200>; + quick-tap-ms = <200>; + require-prior-idle-ms = <50>; bindings = <&kp>, <&kp>; hold-trigger-key-positions = < 6 7 8 9 10 @@ -56,8 +84,26 @@ label = "HOMEROW_MODS_RIGHT"; #binding-cells = <2>; flavor = "tap-preferred"; - tapping-term-ms = <250>; - quick-tap-ms = <180>; + tapping-term-ms = <200>; + quick-tap-ms = <200>; + require-prior-idle-ms = <120>; + bindings = <&kp>, <&kp>; + hold-trigger-key-positions = < + 1 2 3 4 5 + 13 14 15 16 17 19 20 21 22 + 25 26 27 28 29 33 + 36 37 38 39 40 41 + >; // <---[[left-hand keys + all homerow mods + all thumbs]] + }; + + hsr: homerow_shift_right { + compatible = "zmk,behavior-hold-tap"; + label = "HOMEROW_SHIFT_RIGHT"; + #binding-cells = <2>; + flavor = "tap-preferred"; + tapping-term-ms = <200>; + quick-tap-ms = <200>; + require-prior-idle-ms = <50>; bindings = <&kp>, <&kp>; hold-trigger-key-positions = < 1 2 3 4 5 @@ -97,7 +143,7 @@ default_layer { bindings = < &none &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &none - &none &hml LCMD A &hml RALT S &hml LCTRL D &hml LSHFT F &kp G &kp H &hmr RSHFT J &hmr RCTRL K &hmr RALT L &hmr RCMD SEMI &none + &none &hml LCMD A &hml RALT S &hml LCTRL D &hsl LSHFT F &kp G &kp H &hsr RSHFT J &hmr RCTRL K &hmr RALT L &hmr RCMD SEMI &none &none &kp Z &hml LALT X &kp C &kp V &kp B &kp N &kp M &kp COMMA &hmr LALT DOT &kp FSLH &none < RSE ESC < LWR QUOT &kp SPACE &mt RSHFT RET < RSE BSPC < LWR TAB >; @@ -105,7 +151,7 @@ lower_layer { bindings = < &none &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &none - &none &kp LCMD &kp RALT &kp LCTRL &kp LSHFT &none &kp LEFT &hmr RSHFT DOWN &hmr RCTRL UP &hmr RALT RIGHT &kp RCMD &none + &none &kp LCMD &kp RALT &kp LCTRL &kp LSHFT &none &kp LEFT &hsr RSHFT DOWN &hmr RCTRL UP &hmr RALT RIGHT &kp RCMD &none &none &none &kp LALT &none &kp Y &none &kp HOME &kp PG_DN &kp PG_UP &hmr LALT END &caps_word &none < RSE ESC < LWR QUOT &kp SPACE &mt RSHFT RET &mo RSE < LWR TAB >; @@ -113,7 +159,7 @@ raise_layer { bindings = < &none &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp KP_MULTIPLY &kp LPAR &kp RPAR &none - &none &hml LCMD F1 &hml RALT F2 &hml LCTRL F3 &hml LSHFT F4 &kp F5 &kp MINUS &hmr RSHFT EQUAL &hmr RCTRL LBKT &hmr RALT RBKT &hmr RCMD BSLH &none + &none &hml LCMD F1 &hml RALT F2 &hml LCTRL F3 &hsl LSHFT F4 &kp F5 &kp MINUS &hsr RSHFT EQUAL &hmr RCTRL LBKT &hmr RALT RBKT &hmr RCMD BSLH &none &none &kp F6 &hml LALT F7 &kp F8 &kp F9 &kp F10 &kp UNDER &kp PLUS &kp LBRC &kp RBRC &kp PIPE &none < RSE ESC &mo LWR &kp GRAVE &mt RSHFT RET < RSE BSPC < LWR TAB >;