From 3da7c66a43aec69e74fda4372bfac6270102ff4a Mon Sep 17 00:00:00 2001 From: "keymap-editor[bot]" <91849743+keymap-editor[bot]@users.noreply.github.com> Date: Thu, 27 Apr 2023 13:27:15 +0000 Subject: [PATCH] testing out tap dance mods for ctrl/alt/meta --- config/corne.keymap | 41 ++++++++++++++++++----------------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/config/corne.keymap b/config/corne.keymap index 3ceaf25..4eaf5af 100644 --- a/config/corne.keymap +++ b/config/corne.keymap @@ -13,16 +13,21 @@ / { behaviors { - hm: homerow_mods { - compatible = "zmk,behavior-hold-tap"; - label = "HOMEROW_MODS"; - #binding-cells = <2>; - tapping-term-ms = <150>; - quick-tap-ms = <0>; - flavor = "tap-preferred"; + lmod: lmod { + compatible = "zmk,behavior-tap-dance"; + label = "LMOD"; + #binding-cells = <0>; bindings = - <&kp>, - <&kp>; + <&kp LCTRL>, + <&kp LALT>; + }; + rmod: rmod { + compatible = "zmk,behavior-tap-dance"; + label = "RMOD"; + #binding-cells = <0>; + bindings = + <&kp LCTRL>, + <&kp LEFT_META>; }; }; @@ -33,16 +38,6 @@ bindings = <&kp CAPS>; key-positions = <24 35>; }; - - lctrl { - bindings = <&kp LCTRL>; - key-positions = <38 24>; - }; - - rctrl { - bindings = <&kp RCTRL>; - key-positions = <35 39>; - }; }; macros { @@ -53,10 +48,10 @@ base { bindings = < - &kp TAB &kp Q &kp W &kp F &kp P &kp G &kp J &kp L &kp U &kp Y &kp SEMI &kp INS - &kp BACKSPACE &kp A &kp R &kp S &kp T &kp D &kp H &kp N &kp E &kp I &kp O &kp DEL -&kp LEFT_SHIFT &kp Z &kp X &kp C &kp V &kp B &kp K &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT - &kp LALT &mo 1 &kp SPACE &kp ENTER &mo 2 &kp LEFT_META + &kp TAB &kp Q &kp W &kp F &kp P &kp G &kp J &kp L &kp U &kp Y &kp SEMI &kp INS + &kp BACKSPACE &kp A &kp R &kp S &kp T &kp D &kp H &kp N &kp E &kp I &kp O &kp DEL +&kp LEFT_SHIFT &kp Z &kp X &kp C &kp V &kp B &kp K &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT + &lmod &mo 1 &kp SPACE &kp ENTER &mo 2 &rmod >; };