This commit is contained in:
Chow Castro, Marcos 2022-09-19 15:56:45 +02:00
parent f41c660a3a
commit dc7954dfda
2 changed files with 63 additions and 48 deletions

View file

@ -10,9 +10,15 @@
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/ext_power.h>
#include "keymap_german_mac_iso.h"
// }}}
// nvim ~/qmk_firmware/quantum/keymap_extras/keymap_german_mac_iso.h
// #include "keymap_german_mac_iso.h"
// label = "DEFAULT";
// label = "NUMBER";
// label = "SYMBOL";
// label = "FUNCTION";
// label = "MEDIA";
// label = "MOUSE";
// label = "MOUSE";
#ifdef CONFIG_ZMK_DISPLAY
# include "oled.dtsi"
@ -59,6 +65,7 @@
};
//}}}
#endif // CONFIG_ZMK_RGB_UNDERGLOW
/*
// ### definiendo capas {{{
#define DEFAULT 0
#define NUMBER 1
@ -100,6 +107,7 @@
#define DE_CARET &kp HASH // ^ TODO:
//}}}
*/
/ {
keymap {
compatible = "zmk,keymap";
@ -114,6 +122,7 @@
// '---------------------------------------------------------| |----------------------------------------------------------'
// | CTRL | CMD | ALT | | LT1 SPACE | LT2 CMD | LT3 RALT |
// '--------------------------------' '----------------------------------'
label = "DEFAULT";
bindings = <
&lt MEDIA ESC &kp Q &kp W &kp E &kp R &kp T DE_Z &kp U &kp I &kp O &kp P &kp BSPC
&lt MOUSE TAB &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp UP &kp RET
@ -133,6 +142,7 @@
// '----------------------------------------------------------| |----------------------------------------------------------'
// | CTRL | CMD | SPACE | | | LSFT | ALTGR |
// '--------------------------------' '--------------------------------'
label = "NUMBER";
bindings = <
&kp N0 &kp N1 &kp N2 &kp N3 DE_MINS DE_PLUS DE_SS DE_UDIA DE_ADIA DE_ODIA &none &kp BSPC
&kp CAPS &kp N4 &kp N5 &kp N6 DE_FSLH DE_STAR DE_HASH DE_TILDE DE_QUESTION &none &none &kp LALT
@ -152,6 +162,7 @@
// '---------------------------------------------------------| |----------------------------------------------------------'
// | CTRL | CMD | SPACE | | ENTER | ALTGR | CTRL |
// '--------------------------------' '--------------------------------'
label = "SYMBOL";
bindings = <
&kp DLLR DE_LPAR DE_RPAR DE_LBKT DE_RBKT DE_TILDE DE_ACUT DE_GRAVE &none &none &none &kp BSPC
&kp PRCNT DE_LBRC DE_RBRC DE_CARET &kp PG_UP DE_HASH DE_AMPS DE_PIPE &none DE_AT &none &kp LALT
@ -172,6 +183,7 @@
// | CTRL | CMD | ALT | | TAB | ´ | CTRL |
// '--------------------------------' '--------------------------------'
// LCTL(LGUI(KC_D)), LCTL(LGUI(KC_SPC))
label = "FUNCTION";
bindings = <
&kp F1 &kp F2 &kp F3 &kp F4 &kp LC(LG(D)) &kp LS(LA(T)) &none &none &none &none &none &none
&kp F5 &kp F6 &kp F7 &kp F8 DE_BSLH &kp LA(LG(G)) &kp LC(LA(DEL)) &none &none &none &kp C_BRI_UP &none
@ -193,6 +205,7 @@
// '--------------------------------' '--------------------------------'
// &none &none &none &none &none &none &none &none &none &none &none &none
// &none &none &none &none &none &none
label = "MEDIA";
bindings = <
&none &kp LS(LG(NUMBER_1)) &kp LS(LG(NUMBER_2)) &kp LS(LG(NUMBER_3)) &none &none &kp LANG1 &kp LANG2 &kp LANG3 &none &kp C_STOP &kp DEL
&none &kp LS(LG(NUMBER_4)) &kp LS(LG(NUMBER_5)) &none &none &none &none &none &none &none &kp C_VOL_UP &kp C_PLAY_PAUSE
@ -213,6 +226,7 @@
// '---------------------------------------------------------| |----------------------------------------------------------'
// |EP_OFF | EP_ON| EP_TOG | |RGBANI- |RGBANI+| RGBTOG |
// '--------------------------------' '--------------------------------'
label = "MOUSE";
bindings = <
&none &none &none &out OUT_USB &out OUT_BLE &out OUT_TOG &rgb_ug RGB_BRD &rgb_ug RGB_BRI &none &none &none &none
&none &none &none &bt BT_CLR &bt BT_PRV &bt BT_NXT &rgb_ug RGB_SAD &rgb_ug RGB_SAI &none &none &none &none
@ -233,6 +247,7 @@
// '---------------------------------------------------------| |----------------------------------------------------------'
// |EP_OFF | EP_ON| EP_TOG | | | | |
// '--------------------------------' '--------------------------------'
label = "MOUSE";
bindings = <
&none &none &none &out OUT_USB &out OUT_BLE &out OUT_TOG &none &none &none &none &none &none
&none &none &none &bt BT_CLR &bt BT_PRV &bt BT_NXT &none &none &none &none &none &none