From f75639a1fcc27167f9980f7fed3eb41536713b73 Mon Sep 17 00:00:00 2001 From: "Chow Castro, Marcos" Date: Thu, 22 Sep 2022 19:02:26 +0200 Subject: [PATCH] test --- config/corne.keymap | 23 ++-- config/keymap_german_mac_iso.h | 211 ++++++++++++++++----------------- 2 files changed, 115 insertions(+), 119 deletions(-) diff --git a/config/corne.keymap b/config/corne.keymap index 2fa7948..4c4bff8 100644 --- a/config/corne.keymap +++ b/config/corne.keymap @@ -12,19 +12,13 @@ #include #include "keymap_german_mac_iso.h" // }}} -// nvim ~/qmk_firmware/quantum/keymap_extras/keymap_german_mac_iso.h -// label = "DEFAULT"; -// label = "NUMBER"; -// label = "SYMBOL"; -// label = "FUNCTION"; -// label = "MEDIA"; -// label = "MOUSE"; -// label = "MOUSE"; +// ### CONFIG_ZMK_DISPLAY {{{ #ifdef CONFIG_ZMK_DISPLAY # include "oled.dtsi" #endif // CONFIG_ZMK_DISPLAY -#ifdef CONFIG_ZMK_RGB_UNDERGLOW +//}}} // ### ifdef CONFIG_ZMK_RGB_UNDERGLOW {{{ +#ifdef CONFIG_ZMK_RGB_UNDERGLOW # include # include @@ -63,8 +57,8 @@ zmk,underglow = &led_strip; }; }; -//}}} #endif // CONFIG_ZMK_RGB_UNDERGLOW +//}}} // ### definiendo capas {{{ #define DEFAULT 0 #define NUMBER 1 @@ -72,8 +66,16 @@ #define FUNCTION 3 #define MEDIA 4 #define MOUSE 5 +// label = "DEFAULT"; +// label = "NUMBER"; +// label = "SYMBOL"; +// label = "FUNCTION"; +// label = "MEDIA"; +// label = "MOUSE"; +// label = "MOUSE"; //}}} // ### definicion de teclado ALEMAN STANDARD {{{ +/* #define DE_Y &kp Z // Y #define DE_Z &kp Y // Z #define DE_SS &kp MINUS // ß @@ -105,6 +107,7 @@ #define DE_ACUT &kp EQUAL // ´ hasta aqui funciona #define DE_CARET &kp HASH // ^ TODO: +*/ //}}} / { keymap { diff --git a/config/keymap_german_mac_iso.h b/config/keymap_german_mac_iso.h index e68ad13..3690163 100644 --- a/config/keymap_german_mac_iso.h +++ b/config/keymap_german_mac_iso.h @@ -22,13 +22,6 @@ #define XXX &none #define ___ &trans -#define DEFAULT 0 -#define NUMBER 1 -#define SYMBOL 2 -#define FUNCTION 3 -#define MEDIA 4 -#define MOUSE 5 - // Apple "Globe" key // https://github.com/zmkfirmware/zmk/issues/947 // #define GLOBE CAPSLOCK @@ -115,28 +108,28 @@ * └─────┴────┴─────┴───────────────────────┴─────┴────┴─────┘ */ // Row 1 -#define DE_DEG &kp LS(GRAVE) // ° -#define DE_EXLM &kp LS(N1) // ! -#define DE_DQUO &kp LS(N2) // " -#define DE_SECT &kp LS(N3) // § -#define DE_DLR &kp LS(N4) // $ -#define DE_PERC &kp LS(N5) // % -#define DE_AMPR &kp LS(N6) // & -#define DE_SLSH &kp LS(N7) // / -#define DE_LPRN &kp LS(N8) // ( -#define DE_RPRN &kp LS(N9) // ) -#define DE_EQL &kp LS(N0) // = -#define DE_QUES &kp LS(MINUS) // ? -#define DE_GRV &kp LS(EQUAL) // ` (dead) +#define DE_DEG LS(GRAVE) // ° +#define DE_EXLM LS(N1) // ! +#define DE_DQUO LS(N2) // " +#define DE_SECT LS(N3) // § +#define DE_DLR LS(N4) // $ +#define DE_PERC LS(N5) // % +#define DE_AMPR LS(N6) // & +#define DE_SLSH LS(N7) // / +#define DE_LPRN LS(N8) // ( +#define DE_RPRN LS(N9) // ) +#define DE_EQL LS(N0) // = +#define DE_QUES LS(MINUS) // ? +#define DE_GRV LS(EQUAL) // ` (dead) // Row 2 -#define DE_ASTR &kp LS(RPAR) // * +#define DE_ASTR LS(RPAR) // * // Row 3 -#define DE_QUOT &kp LS(BSLH) // ' +#define DE_QUOT LS(BSLH) // ' // Row 4 -#define DE_RABK &kp LS(GRAVE) // > -#define DE_SCLN &kp LS(COMMA) // ; -#define DE_COLN &kp LS(DOT) // : -#define DE_UNDS &kp LS(SLASH) // _ +#define DE_RABK LS(GRAVE) // > +#define DE_SCLN LS(COMMA) // ; +#define DE_COLN LS(DOT) // : +#define DE_UNDS LS(SLASH) // _ /* Alted symbols * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┐ @@ -152,56 +145,56 @@ * └─────┴────┴─────┴───────────────────────┴─────┴────┴─────┘ */ // Row 1 -#define DE_DLQU &kp LA(GRAVE) // „ -#define DE_IEXL &kp LA(N1) // ¡ -#define DE_LDQU &kp LA(N2) // “ -#define DE_PILC &kp LA(N3) // ¶ -#define DE_CENT &kp LA(N4) // ¢ -#define DE_LBRC &kp LA(N5) // [ -#define DE_RBRC &kp LA(N6) // ] -#define DE_PIPE &kp LA(N7) // | -#define DE_LCBR &kp LA(N8) // { -#define DE_RCBR &kp LA(N9) // } -#define DE_NEQL &kp LA(N0) // ≠ -#define DE_IQUE &kp LA(MINUS) // ¿ +#define DE_DLQU LA(GRAVE) // „ +#define DE_IEXL LA(N1) // ¡ +#define DE_LDQU LA(N2) // “ +#define DE_PILC LA(N3) // ¶ +#define DE_CENT LA(N4) // ¢ +#define DE_LBRC LA(N5) // [ +#define DE_RBRC LA(N6) // ] +#define DE_PIPE LA(N7) // | +#define DE_LCBR LA(N8) // { +#define DE_RCBR LA(N9) // } +#define DE_NEQL LA(N0) // ≠ +#define DE_IQUE LA(MINUS) // ¿ // Row 2 -#define DE_LDAQ &kp LA(Q) // « -#define DE_NARS &kp LA(W) // ∑ -#define DE_EURO &kp LA(E) // € -#define DE_REGD &kp LA(R) // ® -#define DE_DAGG &kp LA(T) // † -#define DE_OMEG &kp LA(Z) // Ω -#define DE_DIAE &kp LA(U) // ¨ (dead) -#define DE_FRSL &kp LA(I) // ⁄ -#define DE_OSTR &kp LA(O) // Ø -#define DE_PI &kp LA(P) // π -#define DE_BULT &kp LA(LBKT) // • -#define DE_PLMN &kp LA(RBKT) // ± +#define DE_LDAQ LA(Q) // « +#define DE_NARS LA(W) // ∑ +#define DE_EURO LA(E) // € +#define DE_REGD LA(R) // ® +#define DE_DAGG LA(T) // † +#define DE_OMEG LA(Z) // Ω +#define DE_DIAE LA(U) // ¨ (dead) +#define DE_FRSL LA(I) // ⁄ +#define DE_OSTR LA(O) // Ø +#define DE_PI LA(P) // π +#define DE_BULT LA(LBKT) // • +#define DE_PLMN LA(RBKT) // ± // Row 3 -#define DE_ARNG &kp LA(A) // Å -#define DE_SLQU &kp LA(S) // ‚ -#define DE_PDIF &kp LA(D) // ∂ -#define DE_FHK &kp LA(F) // ƒ -#define DE_COPY &kp LA(G) // © -#define DE_FORD &kp LA(H) // ª -#define DE_MORD &kp LA(J) // º -#define DE_INCR &kp LA(K) // ∆ -#define DE_AT &kp LA(L) // @ -#define DE_OE &kp LA(SEMICOLON) // Œ -#define DE_AE &kp LA(APOS) // Æ -#define DE_LSQU &kp LA(BSLH) // ‘ +#define DE_ARNG LA(A) // Å +#define DE_SLQU LA(S) // ‚ +#define DE_PDIF LA(D) // ∂ +#define DE_FHK LA(F) // ƒ +#define DE_COPY LA(G) // © +#define DE_FORD LA(H) // ª +#define DE_MORD LA(J) // º +#define DE_INCR LA(K) // ∆ +#define DE_AT LA(L) // @ +#define DE_OE LA(SEMICOLON) // Œ +#define DE_AE LA(APOS) // Æ +#define DE_LSQU LA(BSLH) // ‘ // Row 4 -#define DE_LTEQ &kp LA(GRAVE) // ≤ -#define DE_YEN &kp LA(Y) // ¥ -#define DE_AEQL &kp LA(X) // ≈ -#define DE_CCCE &kp LA(C) // Ç -#define DE_SQRT &kp LA(V) // √ -#define DE_INTG &kp LA(B) // ∫ -#define DE_TILD &kp LA(N) // ~ (dead) -#define DE_MICR &kp LA(M) // µ -#define DE_INFN &kp LA(COMMA) // ∞ -#define DE_ELLP &kp LA(DOT) // … -#define DE_NDSH &kp LA(MINS) // – +#define DE_LTEQ LA(GRAVE) // ≤ +#define DE_YEN LA(Y) // ¥ +#define DE_AEQL LA(X) // ≈ +#define DE_CCCE LA(C) // Ç +#define DE_SQRT LA(V) // √ +#define DE_INTG LA(B) // ∫ +#define DE_TILD LA(N) // ~ (dead) +#define DE_MICR LA(M) // µ +#define DE_INFN LA(COMMA) // ∞ +#define DE_ELLP LA(DOT) // … +#define DE_NDSH LA(MINS) // – /* Shift+Alted symbols * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┐ @@ -217,42 +210,42 @@ * └─────┴────┴─────┴───────────────────────┴─────┴────┴─────┘ */ // Row 1 -#define DE_NOT &kp LS(LA(N1)) // ¬ -#define DE_RDQU &kp LS(LA(N2)) // ” -#define DE_PND &kp LS(LA(N4)) // £ -#define DE_FI &kp LS(LA(N5)) // fi -#define DE_BSLS &kp LS(LA(N7)) // (backslash) -#define DE_STIL &kp LS(LA(N8)) // ˜ -#define DE_MDDT &kp LS(LA(N9)) // · -#define DE_MACR &kp LS(LA(N0)) // ¯ -#define DE_DOTA &kp LS(LA(MINUS)) // ˙ -#define DE_RNGA &kp LS(LA(EQUAL)) // ˚ +#define DE_NOT S(LA(N1)) // ¬ +#define DE_RDQU LS(LA(N2)) // ” +#define DE_PND LS(LA(N4)) // £ +#define DE_FI LS(LA(N5)) // fi +#define DE_BSLS LS(LA(N7)) // (backslash) +#define DE_STIL LS(LA(N8)) // ˜ +#define DE_MDDT LS(LA(N9)) // · +#define DE_MACR LS(LA(N0)) // ¯ +#define DE_DOTA LS(LA(MINUS)) // ˙ +#define DE_RNGA LS(LA(EQUAL)) // ˚ // Row 2 -#define DE_RDAQ &kp LS(LA(Q)) // » -#define DE_PERM &kp LS(LA(E)) // ‰ -#define DE_CEDL &kp LS(LA(R)) // ¸ -#define DE_DACU &kp LS(LA(T)) // ˝ -#define DE_CARN &kp LS(LA(Z)) // ˇ -#define DE_AACU &kp LS(LA(U)) // Á -#define DE_UCIR &kp LS(LA(I)) // Û -#define DE_NARP &kp LS(LA(P)) // ∏ -#define DE_APPL &kp LS(LA(RPAR)) //  (Apple logo) +#define DE_RDAQ LS(LA(Q)) // » +#define DE_PERM LS(LA(E)) // ‰ +#define DE_CEDL LS(LA(R)) // ¸ +#define DE_DACU LS(LA(T)) // ˝ +#define DE_CARN LS(LA(Z)) // ˇ +#define DE_AACU LS(LA(U)) // Á +#define DE_UCIR LS(LA(I)) // Û +#define DE_NARP LS(LA(P)) // ∏ +#define DE_APPL LS(LA(RPAR)) //  (Apple logo) // Row 3 -#define DE_IACU &kp LS(LA(S)) // Í -#define DE_TM &kp LS(LA(D)) // ™ -#define DE_IDIA &kp LS(LA(F)) // Ï -#define DE_IGRV &kp LS(LA(G)) // Ì -#define DE_OACU &kp LS(LA(H)) // Ó -#define DE_DLSI &kp LS(LA(J)) // ı -#define DE_FL &kp LS(LA(L)) // fl +#define DE_IACU LS(LA(S)) // Í +#define DE_TM LS(LA(D)) // ™ +#define DE_IDIA LS(LA(F)) // Ï +#define DE_IGRV LS(LA(G)) // Ì +#define DE_OACU LS(LA(H)) // Ó +#define DE_DLSI LS(LA(J)) // ı +#define DE_FL LS(LA(L)) // fl // Row 4 -#define DE_GTEQ &kp LS(LA(GRAVE)) // ≥ -#define DE_DDAG &kp LS(LA(Y)) // ‡ -#define DE_UGRV &kp LS(LA(X)) // Ù -#define DE_LOZN &kp LS(LA(V)) // ◊ -#define DE_LSAQ &kp LS(LA(B)) // ‹ -#define DE_RSAQ &kp LS(LA(N)) // › -#define DE_BREV &kp LS(LA(M)) // ˘ -#define DE_OGON &kp LS(LA(COMMA)) // ˛ -#define DE_DIV &kp LS(LA(DOT)) // ÷ -#define DE_MDSH &kp LS(LA(MINS)) // — +#define DE_GTEQ LS(LA(GRAVE)) // ≥ +#define DE_DDAG LS(LA(Y)) // ‡ +#define DE_UGRV LS(LA(X)) // Ù +#define DE_LOZN LS(LA(V)) // ◊ +#define DE_LSAQ LS(LA(B)) // ‹ +#define DE_RSAQ LS(LA(N)) // › +#define DE_BREV LS(LA(M)) // ˘ +#define DE_OGON LS(LA(COMMA)) // ˛ +#define DE_DIV LS(LA(DOT)) // ÷ +#define DE_MDSH LS(LA(MINS)) // —