From 3c30bc3d21aba61c4526deaa89bac4d45633592b Mon Sep 17 00:00:00 2001 From: Dustin Frisch Date: Thu, 8 Feb 2024 23:47:51 +0100 Subject: [PATCH] fix ESC --- config/mnhttn.keymap | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/config/mnhttn.keymap b/config/mnhttn.keymap index 1deaa7a..e4d7a74 100644 --- a/config/mnhttn.keymap +++ b/config/mnhttn.keymap @@ -12,21 +12,33 @@ #define ADJ 4 &mt { - quick-tap-ms = <200>; + quick-tap-ms = <100>; global-quick-tap; flavor = "balanced"; - tapping-term-ms = <150>; - require-prior-idle-ms = <125>; + // flavor = "tab-preferred"; + // flavor = "hold-preferred"; + tapping-term-ms = <170>; +}; + +< { + quick-tap-ms = <100>; + global-quick-tap; + flavor = "balanced"; + // flavor = "tab-preferred"; + // flavor = "hold-preferred"; + tapping-term-ms = <170>; }; / { - combos { - compatible = "zmk,combos"; - combo_esc { - timeout-ms = <100>; - key-positions = <0>; - bindings = <&kp ESC>; - }; + behaviors { + ht: hold_tap { + compatible = "zmk,behavior-hold-tap"; + #binding-cells = <2>; + flavor = "tab-preferred"; + tapping-term-ms = <200>; + quick-tap-ms = <100>; + bindings = <&kp>, <&kp>; + }; }; keymap { @@ -34,7 +46,7 @@ base_layer { label= "BASE"; bindings = < - &kp DE_Q &kp DE_W &kp DE_E &kp DE_R &kp DE_T &kp DE_Z &kp DE_U &kp DE_I &kp DE_O &kp DE_P + &ht ESC DE_Q &kp DE_W &kp DE_E &kp DE_R &kp DE_T &kp DE_Z &kp DE_U &kp DE_I &kp DE_O &kp DE_P &mt LALT DE_A &mt LCTRL DE_S &mt LGUI DE_D &mt LSHFT DE_F &kp DE_G &kp DE_H &mt RSHFT DE_J &mt RGUI DE_K &mt RCTRL DE_L &mt RALT DE_COLON &kp DE_Y &kp DE_X &kp DE_C &kp DE_V &kp DE_B &kp DE_N &kp DE_M &kp DE_COMMA &kp DE_DOT &kp DE_MINUS &trans < SYM SPACE < NUM BSPC < NAV TAB &mt LSHFT RET &trans