Skip to content

Commit

Permalink
fix: try inverted marks as macros
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffDess committed Oct 29, 2024
1 parent 3fbeedf commit cbd2485
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
4 changes: 2 additions & 2 deletions behaviors/mod-morph.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ ZMK_MOD_MORPH(sap_dap,

// tap: question mark | shift + tap: inverted question mark
ZMK_MOD_MORPH(ques_iques,
bindings = <&kp QUEST>, <&kp INV_QUEST>;
bindings = <&kp QUEST>, <&INV_QUEST>;
mods = <(MOD_LSFT|MOD_RSFT)>;
)

// tap: exclamation mark | shift + tap: inverted exclamation mark
ZMK_MOD_MORPH(excl_iexcl,
bindings = <&kp EXCL>, <&kp INV_EXCL>;
bindings = <&kp EXCL>, <&INV_EXCL>;
mods = <(MOD_LSFT|MOD_RSFT)>;
)
4 changes: 2 additions & 2 deletions keymap-drawer/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -452,15 +452,15 @@ parse_config:
"&KPT ACC_CI 4": "^",
"&KPT ACC_GR 4": "`",
"&KPT ACC_TR 4": "¨",
"&INV_QUEST": "¿",
"&INV_EXCL": "¡",
"&OE_L 4": "Œ",
"&O_CI 4": "Ô",
"&O_TR 4": "Ö",
"&U_CI 4": "Û",
"&U_GR 4": "Ù",
"&U_TR 4": "Ü",
"&QUEST": "?",
"&kp QUEST": "?",
"&INV_QUEST": "¿",
"&kp RA(COMMA)": "<",
"&kp RA(DOT)": ">",
"&GRA": "`",
Expand Down
15 changes: 13 additions & 2 deletions layouts/canadian-multilingual-standard.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
#define ACC_GR RA(LBKT) // `
#define ACC_TI RC(RBKT) // ~
#define ACC_TR LS(LBKT) // ¨
#define INV_QUEST RC(MINUS) // ¿
#define INV_EXCL RS(RC(N1)) // ¡

/* Fractions */
#define MATH_1_4 RC(N4) // ¼
Expand Down Expand Up @@ -93,6 +91,19 @@ ZMK_MACRO(I_CI_Q, bindings = <&morph_i_circ>, <&to QWE>;) // Î
/* Colemak */
ZMK_MACRO(E_GR_C, bindings = <&kp APOS>, <&to COL>;) // È
ZMK_MACRO(I_CI_C, bindings = <&morph_i_circ>, <&to COL>;) // Î
ZMK_MACRO(INV_QUEST, bindings =
<&macro_press &kp RCTL>,
<&macro_tap &kp MINUS>,
<&macro_release &kp RCTL>;
) // ¿

ZMK_MACRO(INV_EXCL, bindings =
<&macro_press &kp RCTL>,
<&macro_press &kp RSHFT>,
<&macro_tap &kp N1>,
<&macro_release &kp LSHFT>,
<&macro_release &kp RCTL>;
) // ¡

/* Ergo-L */
ZMK_MACRO(E_CI_E, bindings = <&morph_e_circ>, <&to ERG>;) // Ê
Expand Down

0 comments on commit cbd2485

Please sign in to comment.