From 205cca5f81b3208903e934109f43e09f356d5ff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Go=C5=82gowski?= Date: Mon, 20 Nov 2023 23:39:56 +0100 Subject: [PATCH] keymap: add dedicated homerow mod behavior. --- config/sofle.keymap | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/config/sofle.keymap b/config/sofle.keymap index bc08bfa..eb42ae1 100644 --- a/config/sofle.keymap +++ b/config/sofle.keymap @@ -18,15 +18,22 @@ // Hyper key shortcut #define LHYP LS(LC(LA(LGUI))) -&mt { - tapping-term-ms = <175>; - flavor = "tap-preferred"; - quick-tap-ms = <100>; - require-prior-idle-ms = <100>; -}; - / { + behaviors { + hm: homerow-mods { + compatible = "zmk,behavior-hold-tap"; + label = "homerow-mods"; + #binding-cells = <2>; + tapping-term-ms = <175>; + flavor = "tap-preferred"; + quick-tap-ms = <100>; + require-prior-idle-ms = <100>; + global-quick-tap; + bindings = <&kp>, <&kp>; + }; + }; + // Activate ADJUST layer by pressing raise and lower conditional_layers { compatible = "zmk,conditional-layers"; @@ -50,7 +57,7 @@ bindings = < &mt LHYP GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &mt LHYP BSLH &kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC -&mt LCTRL ESC &mt LCTRL A &mt LALT S &mt LGUI D &mt LSHFT F &kp G &kp H &mt RSHFT J &mt RGUI K &mt LALT L &mt RCTRL SEMI &mt RCTRL SQT +&hm LCTRL ESC &hm LCTRL A &hm LALT S &hm LGUI D &hm LSHFT F &kp G &kp H &hm RSHFT J &hm RGUI K &hm LALT L &hm RCTRL SEMI &mt RCTRL SQT &kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp C_MUTE &kp C_PP &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT &mt LCTRL LA(Z) &mt LALT LBKT &mt LGUI MINUS &mo LOWER &kp RET &kp SPACE &mo RAISE &mt RGUI EQUAL &mt RALT RBKT &kp RCTRL >;