diff --git a/config/corne.keymap b/config/corne.keymap index 9e48a5d..43a1bde 100644 --- a/config/corne.keymap +++ b/config/corne.keymap @@ -5,12 +5,21 @@ */ #include -#include #include / { combos { compatible = "zmk,combos"; + + number_layer { + bindings = <&mo 4>; + key-positions = <37 41>; + }; + + function_layer { + bindings = <&mo 3>; + key-positions = <36 41>; + }; }; macros { @@ -195,6 +204,20 @@ bindings = <&kp RALT &kp LS(O) &kp DQT>; label = "DE_OE_GR"; }; + + sym_mu: sym_mu { + compatible = "zmk,behavior-macro"; + #binding-cells = <0>; + bindings = <&kp RALT &kp M &kp U>; + label = "SYM_MU"; + }; + + sym_acute: sym_acute { + compatible = "zmk,behavior-macro"; + #binding-cells = <0>; + bindings = <&kp RALT &kp SQT &kp SQT>; + label = "SYM_ACUTE"; + }; }; behaviors { @@ -224,6 +247,78 @@ #binding-cells = <0>; mods = <(MOD_LSFT)>; }; + + part_less_pipe: part_less_pipe { + compatible = "zmk,behavior-mod-morph"; + label = "PART_LESS_PIPE"; + bindings = <&kp LESS_THAN>, <&kp PIPE>; + + #binding-cells = <0>; + mods = <(MOD_RALT)>; + }; + + de_less_more_pipe: de_less_more_pipe { + compatible = "zmk,behavior-mod-morph"; + label = "DE_LESS_MORE_PIPE"; + bindings = <&part_less_pipe>, <&kp GREATER_THAN>; + + #binding-cells = <0>; + mods = <(MOD_LSFT)>; + }; + + de_caret_degree: de_caret_degree { + compatible = "zmk,behavior-mod-morph"; + label = "DE_CARET_DEGREE"; + bindings = <&kp CARET>, <&sym_deg>; + + #binding-cells = <0>; + mods = <(MOD_LSFT)>; + }; + + part_plus_tilde: part_plus_tilde { + compatible = "zmk,behavior-mod-morph"; + label = "PART_PLUS_TILDE"; + bindings = <&kp PLUS>, <&kp TILDE>; + + #binding-cells = <0>; + mods = <(MOD_RALT)>; + }; + + de_plus_star_tilde: de_plus_star_tilde { + compatible = "zmk,behavior-mod-morph"; + label = "DE_PLUS_STAR_TILDE"; + bindings = <&part_plus_tilde>, <&kp STAR>; + + #binding-cells = <0>; + mods = <(MOD_RALT)>; + }; + + dv_qestion_ss: dv_qestion_ss { + compatible = "zmk,behavior-mod-morph"; + label = "DV_QESTION_SS"; + bindings = <&kp QMARK>, <&de_ss>; + + #binding-cells = <0>; + mods = <(MOD_LSFT)>; + }; + + de_acute_grave: de_acute_grave { + compatible = "zmk,behavior-mod-morph"; + label = "DE_ACUTE_GRAVE"; + bindings = <&sym_acute>, <&kp GRAVE>; + + #binding-cells = <0>; + mods = <(MOD_LSFT)>; + }; + + dv_slash: dv_slash { + compatible = "zmk,behavior-mod-morph"; + label = "DV_SLASH"; + bindings = <&kp SLASH>, <&kp NON_US_BACKSLASH>; + + #binding-cells = <0>; + mods = <(MOD_LSFT)>; + }; }; keymap { @@ -237,76 +332,46 @@ // | CTRL| GUI | SPC | | ENT | RSE | ALT | bindings = < -&kp TAB &de_ue &de_comma &de_dot &kp P &kp Y &kp F &kp G &kp C &kp T &kp Z &kp BACKSPACE -&kp ESCAPE &kp A &kp O &kp E &kp I &kp U &kp H &kp D &kp R &kp N &kp S &kp L -&de_ae &de_oe &kp Q &kp J &kp K &kp X &kp B &kp M &kp W &kp V &de_hash &kp MINUS - &kp LCTRL &kp LSHFT &kp LALT &to 1 &kp SPACE &mo 4 +&kp TAB &de_ue &de_comma &de_dot &kp P &kp Y &kp F &kp G &kp C &kp T &kp Z &kp BACKSPACE +&kp ESCAPE &kp A &kp O &kp E &kp I &kp U &kp H &kp D &kp R &kp N &kp S &kp L +&de_ae &de_oe &kp Q &kp J &kp K &kp X &kp B &kp M &kp W &kp V &de_hash &kp MINUS + &mo 1 &kp LSHFT &kp ENTER &kp BACKSPACE &kp SPACE &mo 2 >; }; - number { - // ----------------------------------------------------------------------------------------- - // | TAB | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | BKSP | - // | BTCLR| BT1 | BT2 | BT3 | BT4 | BT5 | | LFT | DWN | UP | RGT | | | - // | SHFT | | | | | | | | | | | | | - // | GUI | | SPC | | ENT | | ALT | - + extend { bindings = < -&kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp KP_PLUS &kp BSPC -&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &kp PRINTSCREEN &mt C_STOP C_PLAY_PAUSE &mt C_RW C_PREV &mt C_FF C_NEXT &kp KP_MINUS &kp ENTER -&none &none &none &none &none &none &kp C_MENU &kp C_MUTE &kp C_VOL_DN &kp C_VOL_UP &kp C_BRIGHTNESS_DEC &kp C_BRIGHTNESS_INC - &kp LCTRL &kp LEFT_GUI &to 0 &to 3 &mo 2 &kp LEFT_ALT +&kp ESC &none &kp C_AC_BACK &kp C_AC_FIND &kp C_AC_FORWARD &kp INS &kp PAGE_UP &kp HOME &kp UP &kp END &none &kp BSPC +&none &sk LALT &sk LGUI &sk LSHFT &sk LCTRL &sk RALT &kp PAGE_DOWN &kp LEFT &kp DOWN &kp RIGHT &kp DEL &kp ENTER +&none &kp LC(Z) &kp LC(X) &kp LC(C) &kp LGUI &kp LC(V) &none &none &kp TAB &kp K_APP &kp PRINTSCREEN &none + &none &kp LSHFT &kp ENTER &kp BSPC &kp SPACE &none >; }; symbol { - // ----------------------------------------------------------------------------------------- - // | TAB | ! | @ | # | $ | % | | ^ | & | * | ( | ) | BKSP | - // | CTRL | | | | | | | - | = | [ | ] | \ | ` | - // | SHFT | | | | | | | _ | + | { | } | "|" | ~ | - // | GUI | | SPC | | ENT | | ALT | - bindings = < -&kp EXCLAMATION &kp DOUBLE_QUOTES &sym_section &kp DOLLAR &kp PERCENT &kp AMPERSAND &kp GRAVE &kp LEFT_PARENTHESIS &kp RIGHT_PARENTHESIS &kp KP_EQUAL &kp ASTERISK &kp BSPC -&sym_ss1 &sym_ss2 &sym_ss3 &trans &trans &none &kp LEFT_BRACE &kp LEFT_BRACKET &kp RIGHT_BRACKET &kp RIGHT_BRACE &kp TILDE &kp KP_MINUS -&kp LESS_THAN &kp GREATER_THAN &kp PIPE &kp AT_SIGN &sym_eur &none &none &kp SLASH &kp QUESTION &de_ss &kp UNDERSCORE &kp KP_PLUS - &kp LCTRL &kp LGUI &to 0 &none &trans &kp LALT +&de_caret_degree &kp LEFT_BRACE &kp LEFT_BRACKET &kp RIGHT_BRACKET &kp RIGHT_BRACE &kp DOLLAR &kp EXCL &kp DOUBLE_QUOTES &sym_copy &sym_tm &de_plus_star_tilde &de_acute_grave +&none &sk LALT &sk LGUI &sk LSHFT &sk LCTRL &sk RALT &dv_qestion_ss &sym_section &sym_reg &kp LPAR &kp RPAR &dv_slash +&none &de_less_more_pipe &none &none &none &sym_eur &kp PERCENT &sym_mu &kp AMPERSAND &kp EQUAL &de_hash &kp MINUS + &none &kp LSHFT &kp ENTER &kp BSPC &kp SPACE &none >; }; - navigation { + function { bindings = < -&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 -&kp TAB &nav_win_prev &nav_win_next &nav_space_prev &nav_space_next &nav_desktop &kp LEFT &kp DOWN &kp UP &kp RIGHT &none &kp ENTER -&none &none &none &none &none &none &kp INS &kp DEL &kp HOME &kp END &kp PG_UP &kp PG_DN - &kp LCTRL &kp LGUI &to 0 &none &kp RSHFT &kp LALT +&trans &kp C_STOP &kp C_PREV &kp C_PP &kp C_NEXT &kp C_BRI_UP &kp F12 &kp F7 &kp F8 &kp F9 &kp SLCK &trans +&trans &sk LALT &sk LGUI &sk LSHFT &sk LCTRL &kp C_BRI_DN &kp F11 &kp F4 &kp F5 &kp F6 &trans &trans +&trans &kp C_MUTE &kp C_VOLUME_DOWN &kp LS(LC(C)) &kp C_VOLUME_UP &kp LC(LS(V)) &kp F10 &kp F1 &kp F2 &kp F3 &none &trans + &trans &kp LSHFT &kp ENTER &kp BSPC &kp SPACE &trans >; }; - altgr { + number { bindings = < -&trans &kp LEFT_BRACE &kp LEFT_BRACKET &kp RIGHT_BRACKET &kp RIGHT_BRACE &alt_trans &alt_trans &alt_trans &sym_copy &sym_tm &alt_trans &trans -&trans &kp AT &alt_trans &sym_eur &kp PIPE &alt_trans &alt_trans &alt_trans &sym_reg &kp LPAR &kp RPAR &kp ENTER -&trans &alt_trans &alt_trans &alt_trans &alt_trans &alt_trans &alt_trans &alt_trans &alt_trans &alt_trans &alt_trans &trans - &trans &trans &trans &trans &trans &trans - >; - }; - - shift { - bindings = < -&kp LS(TAB) &de_ue_gr &kp SEMI &kp LS(SEMI) &kp LS(P) &kp LS(Y) &kp LS(F) &kp LS(G) &kp LS(C) &kp LS(T) &kp LS(Z) &kp LS(BACKSPACE) -&kp LS(ESC) &kp LS(A) &kp LS(O) &kp LS(E) &kp LS(I) &kp LS(U) &kp LS(H) &kp LS(D) &kp LS(R) &kp LS(N) &kp LS(S) &kp LS(L) -&de_ae_gr &de_oe_gr &kp LS(Q) &kp LS(J) &kp LS(K) &kp LS(X) &kp LS(B) &kp LS(M) &kp LS(W) &kp LS(V) &kp SQT &kp UNDER - &kp LS(LCTRL) &kp LS(LEFT_WIN) &kp LS(SPACE) &trans &trans &kp LALT - >; - }; - - layer_6 { - bindings = < -&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans -&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans -&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans - &trans &trans &trans &trans &trans &trans +&none &de_less_more_pipe &de_comma &de_dot &none &none &kp EQUAL &kp N7 &kp N8 &kp N9 &kp PLUS &kp BSPC +&none &sk LALT &sk LGUI &sk LSHFT &sk LCTRL &sk RALT &kp STAR &kp N4 &kp N5 &kp N6 &kp MINUS &kp RET +&none &none &kp Y &kp TAB &kp BSPC &kp ENTER &kp N0 &kp N1 &kp N2 &kp N3 &kp FSLH &none + &none &kp LSHFT &kp ENTER &kp BSPC &kp SPACE &none >; }; };