Skip to content

Commit

Permalink
Try global-quick-tap-ms with zmkfirmware/zmk#1387
Browse files Browse the repository at this point in the history
  • Loading branch information
caksoylar committed Jul 20, 2022
1 parent 0d702d4 commit 74a236a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
2 changes: 2 additions & 0 deletions config/3x5.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -55,6 +56,7 @@
quick-tap-ms = <150>;
flavor = "tap-preferred";
bindings = <&kp>, <&kp>;
global-quick-tap-ms = <100>;
};

// Easy alt-tab with alt+backspace thumb using mod-morphs
Expand Down
25 changes: 13 additions & 12 deletions config/combos.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <TERM>; \
bindings = <BINDINGS>; \
key-positions = <KEYPOS>; \
layers = <LAYERS>; \
global-quick-tap-ms = <QUICKTAP>; \
};

/ {
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)

};
};

0 comments on commit 74a236a

Please sign in to comment.