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
Remove global-quick-tap from shift
  • Loading branch information
caksoylar committed Aug 9, 2022
1 parent 91167ec commit 9500fe0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
1 change: 1 addition & 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 Down
27 changes: 14 additions & 13 deletions config/combos.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,32 @@
╰───────────╮ 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(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(grave, &kp GRAVE, 22 23, DEF CLM, 40)
COMBO(tilde, &kp TILDE, 21 22, DEF CLM, 40)
COMBO(bslh, &kp BSLH, 26 27, DEF CLM, 40)
COMBO(pipe, &kp PIPE, 27 28, DEF CLM, 40)
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(grave, &kp GRAVE, 22 23, DEF CLM, 40, 100)
COMBO(tilde, &kp TILDE, 21 22, 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 9500fe0

Please sign in to comment.