Skip to content

Commit

Permalink
use combos to overwrite capital e circ
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffDess committed Aug 19, 2023
1 parent b9d4974 commit 18d7525
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion config/corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ZMK_LAYER_5COL(accent,
// ╭───────────┬───────────┬───────────┬────────────┬────────────╮ ╭───────────┬─────────────┬─────────────┬────────────┬────────────╮
XXX XXX &TREM E XXX XXX XXX &TREM I &TREM O &TREM U &TREMA
// ├───────────┼───────────┼───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┼────────────┼────────────┤
&A_GR &E_CI &E_CU &hrme SL 0 XXX XXX &hrmi SR 0 &O_CI &U_CI &GRA
&A_GR &CIRC E &E_CU &hrme SL 0 XXX XXX &hrmi SR 0 &O_CI &U_CI &GRA
// ├───────────┼───────────┼───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┼────────────┼────────────┤
&A_CI XXX &CEDIL XXX XXX XXX XXX XXX &U_GR &CAR
// ╰───────────┴───────────┼───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┼────────────┴────────────╯
Expand Down
26 changes: 19 additions & 7 deletions layouts/canadian-multilingual-standard.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -38,38 +38,50 @@ ZMK_BEHAVIOR(CEDIL, macro, bindings = <&kp RBKT>, <&to DEF>;) // Ç

ZMK_BEHAVIOR(CAR, macro, bindings = // ^ directly
<&macro_tap &kp LBKT &kp SPACE>,
<&to DEF>;)
<&to DEF>;
)

ZMK_BEHAVIOR(TREMA, macro, bindings = // ¨ directly
<&macro_tap &kp LS(LBKT) &kp SPACE>,
<&to DEF>;)
<&to DEF>;
)

ZMK_BEHAVIOR(GRA, macro, bindings = // ` directly
<&macro_press &kp RALT>,
<&macro_tap &kp LBKT &kp LBKT>,
<&macro_release &kp RALT>,
<&to DEF>;)
<&to DEF>;
)

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

ZMK_BEHAVIOR(AIGU, macro_one_param, bindings = // ´ to input
<&kp RA(SLASH)>,
<&macro_param_1to1>,
<&macro_tap &kp MACRO_PLACEHOLDER>,
<&to DEF>;)
<&to DEF>;
)

ZMK_BEHAVIOR(TREM, macro_one_param, bindings = // ¨ to input
<&kp LS(LBKT)>,
<&macro_param_1to1>,
<&macro_tap &kp MACRO_PLACEHOLDER>,
<&to DEF>;)
<&to DEF>;
)

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

#define ACC_TIMEOUT

ZMK_COMBO(combo_cap_e_circ_l, &CIRC E, LM3 LM1, 1, ACC_TIMEOUT)
ZMK_COMBO(combo_cap_e_circ_r, &CIRC E, LM3 RM1, 1, ACC_TIMEOUT)

0 comments on commit 18d7525

Please sign in to comment.