From 224e12f5348ab4c5757431d0a797d47cd845f4d7 Mon Sep 17 00:00:00 2001 From: Alin Marin Elena Date: Sun, 21 Apr 2024 10:46:56 +0100 Subject: [PATCH] add unciode dtsi --- .../mlego_m66_rev4/mlego_m66_rev4.keymap | 14 +++--- .../shields/mlego_m66_rev4/my_keys.dtsi | 44 +++++++++++++++++++ 2 files changed, 52 insertions(+), 6 deletions(-) create mode 100644 config/boards/shields/mlego_m66_rev4/my_keys.dtsi diff --git a/config/boards/shields/mlego_m66_rev4/mlego_m66_rev4.keymap b/config/boards/shields/mlego_m66_rev4/mlego_m66_rev4.keymap index 787994c..9f9eb6b 100644 --- a/config/boards/shields/mlego_m66_rev4/mlego_m66_rev4.keymap +++ b/config/boards/shields/mlego_m66_rev4/mlego_m66_rev4.keymap @@ -8,9 +8,11 @@ #include #include #include -/* #include -*/ +#include "zmk-helpers/helper.h" +#include "my_keys.dtsi" + + #define QW 0 #define LWR 1 #define RSE 2 @@ -68,7 +70,7 @@ >; sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>; }; - lower_layer { + raise_layer { bindings = < &kp GRAVE &kp K_MUTE &kp K_VOL_UP &kp K_VOL_DN &kp K_PREV &kp K_PP &kp K_NEXT &kp LG(P) &kp K_SLEEP &kp K_COFFEE &kp PSCRN &kp DEL &kp EQUAL &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans @@ -78,7 +80,7 @@ >; sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>; }; - raise_layer { + lower_layer { bindings = < &kp ESC &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &trans &trans &kp F13 &kp F14 &kp F15 &kp F16 &kp F17 &kp F18 &kp F19 &kp F20 &kp F21 &kp F22 &kp F23 &kp F24 @@ -107,8 +109,8 @@ adj layer adjust_layer { bindings = < &trans &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans &trans &trans &trans &trans &trans &trans &trans - &trans &trans &trans &trans &sys_reset &trans &trans &trans &trans &trans &trans &trans &trans - &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &ro_ai &trans &trans &sys_reset &ro_t &trans &trans &ro_i &trans &trans &trans &trans + &trans &ro_a &ro_s &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &bootloader &trans &trans &trans &out OUT_USB &out OUT_BLE &out OUT_TOG &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &bt BT_NXT &bt BT_CLR &bt BT_PRV >; diff --git a/config/boards/shields/mlego_m66_rev4/my_keys.dtsi b/config/boards/shields/mlego_m66_rev4/my_keys.dtsi new file mode 100644 index 0000000..7320312 --- /dev/null +++ b/config/boards/shields/mlego_m66_rev4/my_keys.dtsi @@ -0,0 +1,44 @@ +ZMK_UNICODE_PAIR(my_la_lA , N0, N3, B, N1 , N0, N3, N9, N1 ) // α/Α +ZMK_UNICODE_PAIR(my_lb_lB , N0, N3, B, N2 , N2, N2, N2, N9 ) // β/∩ +ZMK_UNICODE_PAIR(my_lc_lC , N0, N3, C, N7 , N2, N2, N8, N2 ) // χ/⊂ +ZMK_UNICODE_PAIR(my_ld_lD , N0, N3, B, N4 , N2, N2, N0, N2 ) // δ/∂ +ZMK_UNICODE_PAIR(my_le_lE , N0, N3, B, N5 , N2, N1, N0, N7 ) // ε/ℇ +ZMK_UNICODE_PAIR(my_lf_lF , N0, N3, C, N6 , N0, N3, C, N8 ) // φ/ψ +ZMK_UNICODE_PAIR(my_lg_lG , N0, N3, B, N3 , N0, N3, N9, N3 ) // γ/Γ +ZMK_UNICODE_PAIR(my_lh_lH , N2, N1, N0, F , N2, N1, N0, B ) // ℏ/ℋ +ZMK_UNICODE_PAIR(my_li_lI , N2, N2, N2, B , N2, N2, N2, E ) // ∫/∮ +ZMK_UNICODE_PAIR(my_lj_lJ , N2, N2, N0, N8 , N2, N2, N0, N9 ) // ∈/∉ +ZMK_UNICODE_PAIR(my_lk_lK , N0, N3, F, N0 , N2, N2, N0, N6 ) // ϰ/∆ +ZMK_UNICODE_PAIR(my_ll_lL , N0, N3, B, B , N0, N3, N9, B ) // λ/Λ +ZMK_UNICODE_PAIR(my_lm_lM , N0, N3, B, C , N2, N2, N1, N8 ) // μ/∘ +ZMK_UNICODE_PAIR(my_ln_lN , N0, N3, B, N7 , N2, N2, N2, A ) // η/∪ +ZMK_UNICODE_PAIR(my_lo_lO , N2, N2, N1, E , N2, N2, N9, N7 ) // ∞/⊗ +ZMK_UNICODE_PAIR(my_lp_lP , N0, N3, C, N0 , N2, N2, N0, F ) // π/∏ +ZMK_UNICODE_PAIR(my_lq_lQ , N0, N3, C, N3 , N0, N3, D, N5 ) // σ/ϕ +ZMK_UNICODE_PAIR(my_lr_lR , N0, N3, C, N1 , N2, N2, N0, N7 ) // ρ/∇ +ZMK_UNICODE_PAIR(my_ls_lS , N2, N2, N1, N1 , N2, A, N0, B ) // ∑/⨋ +ZMK_UNICODE_PAIR(my_lt_lT , N0, N3, D, N1 , N0, N3, B, N8 ) // ϑ/θ +ZMK_UNICODE_PAIR(my_lu_lU , N0, N3, C, N4 , N2, N1, N0, N2 ) // τ/ℂ +ZMK_UNICODE_PAIR(my_lv_lV , N0, N3, B, D , N2, N2, N8, N3 ) // χ/⊃ +ZMK_UNICODE_PAIR(my_lw_lW , N0, N3, C, N9 , N0, N3, A, N9 ) // ω/Ω +ZMK_UNICODE_PAIR(my_lx_lX , N0, N3, B, E , N0, N3, N9, E ) // ξ/Ξ +ZMK_UNICODE_PAIR(my_ly_lY , N2, N1, N1, d , N2, N1, N2, N4 ) // ℝ/ℤ +ZMK_UNICODE_PAIR(my_lz_lZ , N0, N3, B, N6 , N2, N2, N2, N1 ) // ζ/∡ +ZMK_UNICODE_PAIR(my_lc1_lC1 , N2, N2, N4, N8 , N2, N2, N4, N9 ) // ≈/≉ +ZMK_UNICODE_PAIR(my_lp1_lP1 , N0, N0, B, N1 , N2, N2, N1, N3 ) // ±/∓ +ZMK_UNICODE_PAIR(my_lq1_lQ1 , N0, N0, D, N7 , N2, N2, C, N5 ) // ×/⋅ +ZMK_UNICODE_PAIR(my_ll1_lL1 , N1, D, N5, N3 , N2, N1, N1, N2 ) // 𝔼/Å +ZMK_UNICODE_PAIR(my_lk1_lK1 , N2, N2, N1, D , N2, N1, N2, b ) // ∝/Å +ZMK_UNICODE_PAIR(my_lbo1_lbo2 , N2, N2, D, C , N2, N2, N6, N0 ) // ⋜/≠ +ZMK_UNICODE_PAIR(my_lbc1_lbc2 , N2, N2, D, D , N2, N2, N4, N5 ) // ⋝/≅ +ZMK_UNICODE_PAIR(my_ls1_ls2 , N2, N2, N6, N1 , N2, N2, N6, N2 ) // ≡/≢ +ZMK_UNICODE_PAIR(ro_a , N0, N1, N0, N3 , N0, N1, N0, N2 ) // ă/Ă +ZMK_UNICODE_PAIR(ro_ai , N0, N0, E, N2 , N0, N0, C, N2 ) // â/Â +ZMK_UNICODE_PAIR(my_rx_rX , N0, N0, E, N7 , N0, N0, C, N7 ) // ç/Ç +ZMK_UNICODE_PAIR(my_i , N0, N0, E, E , N0, N0, C, E ) // î/Î +ZMK_UNICODE_PAIR(my_s , N0, N2, N1, N9 , N0, N2, N1, N8 ) // ș/Ș +ZMK_UNICODE_PAIR(my_t , N0, N2, N1, B , N0, N2, N1, A ) // ț/Ț +ZMK_UNICODE_PAIR(my_rc_rC , N2, N2, N8, N4 , N2, N2, N8, N6 ) // ⊄/⊆ +ZMK_UNICODE_PAIR(my_rv_rV , N2, N2, N8, N5 , N2, N2, N8, N7 ) // ⊅/⊇ +ZMK_UNICODE_PAIR(my_rb_rB , N2, N2, N2, N7 , N2, N2, B, C ) // ∧/⊼ +ZMK_UNICODE_PAIR(my_rn_rN , N2, N2, N2, N8 , N2, N2, B, B ) // ∨/⊻