re-unite right/left hand combo timeouts, and fix position of right hand positiona layer tap

This commit is contained in:
Jamie Ding 2022-03-14 01:30:08 +00:00
parent 20123ee236
commit fb585d24d1

View file

@ -13,8 +13,7 @@
#define TGL 7
#define TGR 8
#define COMBO_TIMEOUT_LEFT 25
#define COMBO_TIMEOUT_RIGHT 50
#define COMBO_TIMEOUT 25
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
// [Keymap 3Jan2022 21:03]
@ -27,7 +26,7 @@
label = "LAYER_TAP_POSITIONAL_LEFT";
#binding-cells = <2>;
flavor = "tap-unless-interrupted";
tapping-term-ms = <COMBO_TIMEOUT_LEFT>;
tapping-term-ms = <COMBO_TIMEOUT>;
bindings = <&mo>, <&kp>;
hold-trigger-key-positions = <2 3 4 14 15 16>;
};
@ -37,9 +36,9 @@
label = "LAYER_TAP_POSITIONAL_RIGHT";
#binding-cells = <2>;
flavor = "tap-unless-interrupted";
tapping-term-ms = <COMBO_TIMEOUT_RIGHT>;
tapping-term-ms = <COMBO_TIMEOUT>;
bindings = <&mo>, <&kp>;
hold-trigger-key-positions = <19 20>;
hold-trigger-key-positions = <20 21>;
};
cht: combo_like_hold_tap {
@ -60,22 +59,22 @@
combos {
compatible = "zmk,combos";
combo_sys {
timeout-ms = <COMBO_TIMEOUT_LEFT>;
timeout-ms = <COMBO_TIMEOUT>;
key-positions = <0 1 2>;
bindings = <&sl SYS>;
};
combo_menu {
timeout-ms = <COMBO_TIMEOUT_RIGHT>;
key-positions = <18 19>;
timeout-ms = <COMBO_TIMEOUT>;
key-positions = <19 20>;
bindings = <&kp K_CMENU>;
};
combo_tab {
timeout-ms = <COMBO_TIMEOUT_LEFT>;
timeout-ms = <COMBO_TIMEOUT>;
key-positions = <26 27>;
bindings = <&kp TAB>;
};
combo_esc {
timeout-ms = <COMBO_TIMEOUT_LEFT>;
timeout-ms = <COMBO_TIMEOUT>;
key-positions = <27 28>;
bindings = <&kp ESC>;
};