Skip to content

Commit

Permalink
create new macros for HRM
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffDess committed Jan 12, 2024
1 parent eab9954 commit 551e28a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
10 changes: 5 additions & 5 deletions behaviors/hold-tap.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ZMK_BEHAVIOR(hrmc, hold_tap,
tapping-term-ms = <hrm_tap_term>;
quick-tap-ms = <hrm_quick_tap>;
global-quick-tap;
bindings = <&kp>, <&CIRC>;
bindings = <&kp>, <&CIRC_D>;
)

// homerow mods for grave
Expand All @@ -53,7 +53,7 @@ ZMK_BEHAVIOR(hrmg, hold_tap,
tapping-term-ms = <hrm_tap_term>;
quick-tap-ms = <hrm_quick_tap>;
global-quick-tap;
bindings = <&kp>, <&AGRA>;
bindings = <&kp>, <&AGRA_D>;
)

// homerow mods for è
Expand All @@ -62,7 +62,7 @@ ZMK_BEHAVIOR(hrme, hold_tap,
tapping-term-ms = <hrm_tap_term>;
quick-tap-ms = <hrm_quick_tap>;
global-quick-tap;
bindings = <&kp>, <&E_GR>;
bindings = <&kp>, <&E_GR_D>;
)

// homerow mods for ê
Expand All @@ -71,7 +71,7 @@ ZMK_BEHAVIOR(hrmec, hold_tap,
tapping-term-ms = <hrm_tap_term>;
quick-tap-ms = <hrm_quick_tap>;
global-quick-tap;
bindings = <&kp>, <&E_CI>;
bindings = <&kp>, <&E_CI_E>;
)

// homerow mods for î
Expand All @@ -80,5 +80,5 @@ ZMK_BEHAVIOR(hrmi, hold_tap,
tapping-term-ms = <hrm_tap_term>;
quick-tap-ms = <hrm_quick_tap>;
global-quick-tap;
bindings = <&kp>, <&I_CI>;
bindings = <&kp>, <&I_CI_D>;
)
23 changes: 23 additions & 0 deletions layouts/canadian-multilingual-standard.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ ZMK_BEHAVIOR(U_CI, macro_one_param, bindings = <&fr_u_cf>, <&macro_param_1to1>,
ZMK_BEHAVIOR(U_GR, macro_one_param, bindings = <&fr_u_gr>, <&macro_param_1to1>, <&to MACRO_PLACEHOLDER>;) // Ù
ZMK_BEHAVIOR(CEDIL, macro_one_param, bindings = <&kp RBKT>, <&macro_param_1to1>, <&to MACRO_PLACEHOLDER>;) // Ç

// QWERTY Homerow Mods
ZMK_BEHAVIOR(E_GR_D, macro, bindings = <&kp APOS>, <&to DEF>;) // È
ZMK_BEHAVIOR(I_CI_D, macro, bindings = <&fr_i_cf>, <&to DEF>;) // Î

// Ergo-L Homerow Mods
ZMK_BEHAVIOR(E_CI_E, macro, bindings = <&fr_e_cf>, <&to ERG>;) // Ê

// ` directly
ZMK_BEHAVIOR(GRA, macro_one_param, bindings =
<&macro_press &kp RALT>,
Expand Down Expand Up @@ -72,6 +79,14 @@ ZMK_BEHAVIOR(AGRA, macro_two_param, bindings =
<&to MACRO_PLACEHOLDER>;
)

// ` to input then to default layer
ZMK_BEHAVIOR(AGRA_D, macro_one_param, bindings =
<&kp RA(LBKT)>,
<&macro_param_1to1>,
<&macro_tap &kp MACRO_PLACEHOLDER>,
<&to DEF>;
)

// ´ to input
ZMK_BEHAVIOR(AIGU, macro_two_param, bindings =
<&kp RA(SLASH)>,
Expand Down Expand Up @@ -99,6 +114,14 @@ ZMK_BEHAVIOR(CIRC, macro_two_param, bindings =
<&to MACRO_PLACEHOLDER>;
)

// ^ to input then to default layer
ZMK_BEHAVIOR(CIRC_D, macro_one_param, bindings =
<&kp LBKT>,
<&macro_param_1to1>,
<&macro_tap &kp MACRO_PLACEHOLDER>,
<&to DEF>;
)

// Keypress then return to default layer
ZMK_BEHAVIOR(KPD, macro_two_param, bindings =
<&macro_param_1to1>,
Expand Down

0 comments on commit 551e28a

Please sign in to comment.