From c877cc200bba1bc3fc6757ab68d29a86c6029883 Mon Sep 17 00:00:00 2001 From: Cem Aksoylar Date: Tue, 19 Jul 2022 23:34:20 -0700 Subject: [PATCH] Try global-quick-tap-ms with zmkfirmware/zmk#1387 Remove global-quick-tap from shift --- config/3x5.keymap | 1 + config/combos.dtsi | 25 +++++++++++++------------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/config/3x5.keymap b/config/3x5.keymap index 52d35914..41f7538a 100644 --- a/config/3x5.keymap +++ b/config/3x5.keymap @@ -46,6 +46,7 @@ quick-tap-ms = <150>; flavor = "tap-preferred"; bindings = <&kp>, <&kp>; + global-quick-tap-ms = <100>; }; as: alpha_shift { compatible = "zmk,behavior-hold-tap"; diff --git a/config/combos.dtsi b/config/combos.dtsi index 118d0ac9..ebff9eb5 100644 --- a/config/combos.dtsi +++ b/config/combos.dtsi @@ -7,30 +7,31 @@ ╰───────────╮ 30 31 │ │ 32 33 ╭───────────╯ ╰────────╯ ╰────────╯ */ -#define COMBO(NAME, BINDINGS, KEYPOS, LAYERS, TERM) \ +#define COMBO(NAME, BINDINGS, KEYPOS, LAYERS, TERM, QUICKTAP) \ combo_##NAME { \ timeout-ms = ; \ bindings = ; \ key-positions = ; \ layers = ; \ + global-quick-tap-ms = ; \ }; / { combos { compatible = "zmk,combos"; -COMBO(grave, &kp GRAVE, 22 23, DEF CLM, 40) -COMBO(semi, &kp SEMI, 6 7, DEF CLM, 40) -COMBO(lpar, &kp LPAR, 12 13, DEF CLM, 40) -COMBO(rpar, &kp RPAR, 16 17, DEF CLM, 40) -COMBO(lbkt, &kp LBKT, 11 12, DEF CLM, 40) -COMBO(rbkt, &kp RBKT, 17 18, DEF CLM, 40) -COMBO(tab, &kp TAB, 11 13, DEF CLM, 40) -COMBO(bspc, &kp BSPC, 16 18, DEF CLM, 40) -COMBO(bslh, &kp BSLH, 26 27, DEF CLM, 40) -COMBO(pipe, &kp PIPE, 27 28, DEF CLM, 40) +COMBO(grave, &kp GRAVE, 22 23, DEF CLM, 40, 100) +COMBO(semi, &kp SEMI, 6 7, DEF CLM, 40, 100) +COMBO(lpar, &kp LPAR, 12 13, DEF CLM, 40, 100) +COMBO(rpar, &kp RPAR, 16 17, DEF CLM, 40, 100) +COMBO(lbkt, &kp LBKT, 11 12, DEF CLM, 40, 100) +COMBO(rbkt, &kp RBKT, 17 18, DEF CLM, 40, 100) +COMBO(tab, &kp TAB, 11 13, DEF CLM, 40, 100) +COMBO(bspc, &kp BSPC, 16 18, DEF CLM, 40, 100) +COMBO(bslh, &kp BSLH, 26 27, DEF CLM, 40, 100) +COMBO(pipe, &kp PIPE, 27 28, DEF CLM, 40, 100) -COMBO(capswd, &caps_word, 13 16, DEF CLM, 60) +COMBO(capswd, &caps_word, 13 16, DEF CLM, 60, 100) }; };