Skip to content

Commit

Permalink
fix: fractions still not working
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffDess committed Aug 5, 2024
1 parent f0ac270 commit 4098522
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions layouts/canadian-multilingual-standard.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,9 @@
#define ACC_TR LS(LBKT) // ¨

/* Fractions */
#define MATH_1_4 RA(N4) // ¼
#define MATH_1_2 RA(N5) // ½
#define MATH_3_4 RA(N6) // ¾
#define MATH_3_8 RC(N5) //
#define MATH_5_8 RC(N6) //
#define MATH_7_8 RC(N7) //
#define MATH_1_4 RC(N4) // ¼
#define MATH_1_2 RC(N5) // ½
#define MATH_3_4 RC(N6) // ¾

/* Symbols */
#define MATH_PM RA(N1) //
Expand All @@ -41,9 +38,7 @@
#define LAQUO RA(Z) // «
#define RAQUO RA(X) // »



// Mod-morph - lowercase / uppercase accented characters
// MOD-MORPH - lowercase / uppercase accented characters
ZMK_MOD_MORPH(morph_a_circ, bindings = <&CIRC A>, <&CIRC LS(A)>; mods = <(MOD_LSFT|MOD_RSFT)>;) // â / Â
ZMK_MOD_MORPH(morph_e_circ, bindings = <&CIRC E>, <&CIRC LS(E)>; mods = <(MOD_LSFT|MOD_RSFT)>;) // ê / Ê
ZMK_MOD_MORPH(morph_e_trem, bindings = <&TREM E>, <&TREM LS(E)>; mods = <(MOD_LSFT|MOD_RSFT)>;) // ê / Ê
Expand All @@ -57,7 +52,8 @@ ZMK_MOD_MORPH(morph_u_trem, bindings = <&TREM U>, <&TREM LS(U)>; mods = <(MOD_LS
ZMK_MOD_MORPH(morph__ae, bindings = <&kp RC(A)>, <&kp LS(RC(A))>; mods = <(MOD_LSFT|MOD_RSFT)>;) // æ / Æ
ZMK_MOD_MORPH(morph__oe, bindings = <&kp RC(E)>, <&kp LS(RC(E))>; mods = <(MOD_LSFT|MOD_RSFT)>;) // œ / Œ

// The following macros return to the base layer after being pressed
// KEYMAP MACROS
// The following macros return to the specified layer after being pressed
ZMK_MACRO_ONE_PARAM(A_GR, bindings = <&kp BACKSLASH>, <&macro_param_1to1>, <&to MACRO_PLACEHOLDER>;) // À
ZMK_MACRO_ONE_PARAM(A_CI, bindings = <&morph_a_circ>, <&macro_param_1to1>, <&to MACRO_PLACEHOLDER>;) // Â
ZMK_MACRO_ONE_PARAM(E_CU, bindings = <&kp SLASH>, <&macro_param_1to1>, <&to MACRO_PLACEHOLDER>;) // É
Expand All @@ -75,17 +71,22 @@ ZMK_MACRO_ONE_PARAM(AE_L, bindings = <&morph__ae>, <&macro_param_1to1>, <&to MAC
ZMK_MACRO_ONE_PARAM(OE_L, bindings = <&morph__oe>, <&macro_param_1to1>, <&to MACRO_PLACEHOLDER>;) // Œ
ZMK_MACRO_ONE_PARAM(CEDIL, bindings = <&kp RBKT>, <&macro_param_1to1>, <&to MACRO_PLACEHOLDER>;) // Ç

// QWERTY Homerow Mods

// ACCENTS HOME ROW MODS

// QWERTY
ZMK_MACRO(E_GR_D, bindings = <&kp APOS>, <&to QWE>;) // È
ZMK_MACRO(I_CI_D, bindings = <&morph_i_circ>, <&to QWE>;) // Î

// Colemak Homerow Mods
// Colemak
ZMK_MACRO(E_GR_C, bindings = <&kp APOS>, <&to COL>;) // È
ZMK_MACRO(I_CI_C, bindings = <&morph_i_circ>, <&to COL>;) // Î

// Ergo-L Homerow Mods
// Ergo-L
ZMK_MACRO(E_CI_E, bindings = <&morph_e_circ>, <&to ERG>;) // Ê

// ACCENTS MACROS

// ` directly
ZMK_MACRO(GRA, bindings =
<&macro_press &kp RALT>,
Expand Down

0 comments on commit 4098522

Please sign in to comment.