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