diff --git a/config/unicode.dtsi b/config/unicode.dtsi index 33e50b8..aa4d659 100644 --- a/config/unicode.dtsi +++ b/config/unicode.dtsi @@ -1,12 +1,14 @@ #define OS_LEAD &kp RALT &kp U // OS specific sequence to initialize unicode #define OS_TRAIL &kp RET // OS specific sequence to terminate unicode +#define str(s) #s + #define UNICODE_MACRO(NAME, UNICODE_BINDING) \ NAME: NAME { \ wait-ms = <1>; \ tap-ms = <5>; \ compatible = "zmk,behavior-macro"; \ - label = "NAME"; \ + label = #NAME; \ #binding-cells = <0>; \ bindings = ; \ }; @@ -24,11 +26,11 @@ behaviors { \ uc_##NAME: uc_##NAME { \ compatible = "zmk,behavior-mod-morph"; \ - label = "uc_##NAME"; \ + label = str(uc_##NAME); \ #binding-cells = <0>; \ bindings = <&uc_0_##NAME>, <&uc_1_##NAME>; \ - mods = ; \ - masked_mods = ; \ + mods = <(MOD_LSFT|MOD_RSFT)>; \ + masked_mods = <(MOD_LSFT|MOD_RSFT)>; \ }; \ }; @@ -38,4 +40,7 @@ UNI_ONE(alpha, N0, N3, B, N1) UNI_TWO(ae, N0, N0, E, N4, N0, N0, C, N4) +UNI_TWO(oe, N0, N0, F, N6, N0, N0, D, N6) +UNI_TWO(ue, N0, N0, F, C, N0, N0, D, C) +UNI_ONE(esszet, N0, N0, D, F)