Skip to content

Commit

Permalink
Change HRM timings
Browse files Browse the repository at this point in the history
  • Loading branch information
englmaxi authored Sep 21, 2024
1 parent d367d49 commit 4fc5546
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
16 changes: 9 additions & 7 deletions config/keymap/behaviors.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@


// home row mod
#define HM(NAME, TAP, HT_KEYPOS, ...) \
#define HM(NAME, TAP, HT_KEYPOS, RPI, ...) \
NAME: NAME { \
compatible = "zmk,behavior-hold-tap"; \
#binding-cells = <2>; \
flavor = "balanced"; \
tapping-term-ms = <280>; \
quick-tap-ms = <175>; \
require-prior-idle-ms = <150>; \
require-prior-idle-ms = <RPI>; \
bindings = <&kp>, <TAP>; \
hold-trigger-key-positions = <HT_KEYPOS THUMBS>; \
hold-trigger-on-release; \
Expand All @@ -78,11 +78,13 @@

/ {
behaviors {
HM(hml, &kp, KEYS_R)
HM(hml_hwu, &kp, KEYS_R, hold-while-undecided;)
HM(hml_m, &mkp, KEYS_R)
HM(hmr, &kp, KEYS_L)
HM(hmr_hwu, &kp, KEYS_L, hold-while-undecided;)
HM(hsl, &kp, KEYS_R, 0, hold-while-undecided;)
HM(hcl, &kp, KEYS_R, 200, hold-while-undecided;)
HM(hml, &kp, KEYS_R, 200)
HM(hml_m, &mkp, KEYS_R, 200)
HM(hsr, &kp, KEYS_L, 0, hold-while-undecided;)
HM(hcr, &kp, KEYS_L, 200, hold-while-undecided;)
HM(hmr, &kp, KEYS_L, 200)
};
};

Expand Down
20 changes: 10 additions & 10 deletions config/keymap/keymap.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@
default_layer {
display-name = "DEF";
bindings = <LAYER_FROM34( \
// ╭─────────────┬─────────────┬─────────────────┬──────────────────┬──────────────╮ ╭─────────────┬─────────────────┬─────────────────┬─────────────────┬─────────────╮
&kp V, &kp W, &kp F, &kp P, &kp B, &kp J, &kp L, &ad_u, &kp DE_Y, &td_sqt_dqt, \
// ├─────────────┼─────────────┼─────────────────┼──────────────────┼──────────────┤ ├─────────────┼─────────────────┼─────────────────┼─────────────────┼─────────────┤
&hml LGUI R, &hml LALT S, &hml_hwu LCTRL T, &hml_hwu LSHIFT H, &kp K, &kp X, &hmr_hwu RSHFT N, &hmr_hwu RCTRL A, &hmr LALT I, &hmr LGUI O, \
// ├─────────────┼─────────────┼─────────────────┼──────────────────┼──────────────┤ ├─────────────┼─────────────────┼─────────────────┼─────────────────┼─────────────┤
&kp DE_Z, &hml RALT C, &kp G, &kp D, &kp Q, &key_repeat, &kp M, &ad_comma, &hmr RALT DE_DOT, &qexcl, \
// ╰─────────────┴─────────────┴─────────────────┼──────────────────┼──────────────┤ ├─────────────┼─────────────────┼─────────────────┴─────────────────┴─────────────╯
&bspc_del, &lt NAV SPACE, &lt_e NUM 0, &qt_grv \
// ╰──────────────────┴──────────────╯ ╰─────────────┴─────────────────╯
// ╭─────────────┬─────────────┬─────────────┬──────────────┬──────────────╮ ╭─────────────┬──────────────────────────┬─────────────────┬─────────────╮
&kp V, &kp W, &kp F, &kp P, &kp B, &kp J, &kp L, &ad_u, &kp DE_Y, &td_sqt_dqt, \
// ├─────────────┼─────────────┼─────────────┼──────────────┼──────────────┤ ├─────────────┼──────────────────────────┼─────────────────┼─────────────┤
&hml LGUI R, &hml LALT S, &hcl LCTRL T, &hsl LSHIFT H, &kp K, &kp X, &hsr RSHFT N, &hcr RCTRL A, &hmr LALT I, &hmr LGUI O, \
// ├─────────────┼─────────────┼─────────────┼──────────────┼──────────────┤ ├─────────────┼──────────────────────────┼─────────────────┼─────────────┤
&kp DE_Z, &hml RALT C, &kp G, &kp D, &kp Q, &key_repeat, &kp M, &ad_comma, &hmr RALT DE_DOT, &qexcl, \
// ╰─────────────┴─────────────┴─────────────┼──────────────┼──────────────┤ ├─────────────┼──────────────────────────┴─────────────────┴─────────────╯
&bspc_del, &lt NAV SPACE, &lt_e NUM 0, &qt_grv \
// ╰──────────────┴──────────────╯ ╰─────────────┴─────────────╯
)>;
};

Expand All @@ -70,7 +70,7 @@
// ╭─────────────┬────────────────┬─────────────────┬──────────────────┬──────────────╮ ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮
&none, &p_tab_desk, &n_tab_desk, &alt_tabber, &close_reopen, &kp PG_UP, CT(HOME), &kp UP, CT(END), &none, \
// ├─────────────┼────────────────┼─────────────────┼──────────────────┼──────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
&kp LGUI, &hml_m LALT MB4, &hml_m LCTRL MB5, &hml LSHFT LC(F), &kp LC(A), &kp PG_DN, &kp LEFT, &kp DOWN, &kp RIGHT, &sel_word, \
&kp LGUI, &hml_m LALT MB4, &hml_m LCTRL MB5, &hsl LSHFT LC(F), &kp LC(A), &kp PG_DN, &kp LEFT, &kp DOWN, &kp RIGHT, &sel_word, \
// ├─────────────┼────────────────┼─────────────────┼──────────────────┼──────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
&kp U_UND, &kp U_CUT, &kp U_CPY, &mt U_PST_P U_PST, &kp U_RDO, &none, &kp BSPC, &kp TAB, &kp DEL, &none, \
// ╰─────────────┴────────────────┴─────────────────┼──────────────────┼──────────────┤ ├─────────────┼─────────────┼─────────────┴─────────────┴─────────────╯
Expand Down

0 comments on commit 4fc5546

Please sign in to comment.