corne-keyboard-config/config/corne.keymap

312 lines
11 KiB
Text
Raw Normal View History

2023-10-13 14:39:58 +02:00
/*
* Copyright (c) 2020 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#include <behaviors.dtsi>
2023-10-16 02:12:44 +02:00
#include <dt-bindings/zmk/keys.h>
2023-10-16 00:01:08 +02:00
2023-10-13 14:39:58 +02:00
/ {
combos {
compatible = "zmk,combos";
number_layer {
bindings = <&mo 6>;
key-positions = <37 41>;
};
function_layer {
bindings = <&mo 5>;
key-positions = <36 41>;
};
};
macros {
2023-11-17 03:12:03 +01:00
sym_sec: sym_sec {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
2023-10-25 22:38:22 +02:00
bindings = <&kp RALT &kp S &kp O>;
label = "sym_sec";
};
de_ue: de_ue {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp RALT &kp U &kp DQT>;
label = "DE_UE";
};
de_ae: de_ae {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp RALT &kp A &kp DQT>;
label = "DE_AE";
};
de_oe: de_oe {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp RALT &kp O &kp DQT>;
label = "DE_OE";
};
de_ss: de_ss {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp RALT &kp S &kp S>;
label = "DE_SS";
};
sym_eur: sym_eur {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp RALT &kp C &kp EQUAL>;
label = "SYM_EUR";
};
sym_ss1: sym_ss1 {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp RALT &kp CARET &kp KP_NUMBER_1>;
label = "SYM_SS1";
};
sym_ss2: sym_ss2 {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp RALT &kp CARET &kp KP_NUMBER_2>;
label = "SYM_SS2";
};
sym_ss3: sym_ss3 {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp RALT &kp CARET &kp KP_NUMBER_3>;
label = "SYM_SS3";
};
sym_tm: sym_tm {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp RALT &kp T &kp M>;
label = "SYM_TM";
};
sym_reg: sym_reg {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp RALT &kp O &kp R>;
label = "SYM_REG";
};
sym_copy: sym_copy {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp RALT &kp O &kp C>;
label = "SYM_COPY";
};
sym_deg: sym_deg {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp RALT &kp O &kp O>;
label = "SYM_DEG";
};
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 {
de_hash: de_hash {
compatible = "zmk,behavior-mod-morph";
label = "DE_HASH";
bindings = <&kp HASH>, <&kp SQT>;
#binding-cells = <0>;
mods = <(MOD_LSFT)>;
};
de_comma: de_comma {
compatible = "zmk,behavior-mod-morph";
label = "DE_COMMA";
bindings = <&kp COMMA>, <&kp SEMICOLON>;
#binding-cells = <0>;
mods = <(MOD_LSFT)>;
};
de_dot: de_dot {
compatible = "zmk,behavior-mod-morph";
label = "DE_DOT";
bindings = <&kp DOT>, <&kp COLON>;
#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_lt_mt_pipe: de_lt_mt_pipe {
compatible = "zmk,behavior-mod-morph";
label = "de_lt_mt_pipe";
bindings = <&part_less_pipe>, <&kp GREATER_THAN>;
#binding-cells = <0>;
mods = <(MOD_LSFT)>;
};
de_car_deg: de_car_deg {
compatible = "zmk,behavior-mod-morph";
label = "de_car_deg";
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_str_tld: de_plus_str_tld {
compatible = "zmk,behavior-mod-morph";
label = "de_plus_str_tld";
bindings = <&part_plus_tilde>, <&kp STAR>;
#binding-cells = <0>;
mods = <(MOD_RALT)>;
};
dv_qmark_ss: dv_qmark_ss {
compatible = "zmk,behavior-mod-morph";
label = "dv_qmark_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)>;
};
};
2023-10-16 02:12:44 +02:00
keymap {
compatible = "zmk,keymap";
default_layer {
bindings = <
&kp TAB &none &de_comma &none &none &none &none &none &none &none &none &none
&kp ESC &sk LALT &sk LGUI &sk LSHFT &sk LCTRL &sk RALT &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &none &none &none
&mo 3 &kp LSHFT &kp RET &kp BSPC &kp SPACE &mo 4
>;
};
dvorak2 {
// -----------------------------------------------------------------------------------------
// | TAB | Ü | , | . | P | Y | | F | G | C | T | Z | ? |
// | ESC | A | O | E | I | U | | H | D | R | N | S | L |
// | Ä | Ö | Q | J | K | X | | B | M | , | . | # | - |
// | CTRL| GUI | SPC | | ENT | RSE | ALT |
2023-10-16 02:12:44 +02:00
bindings = <
&trans &de_ue &trans &trans &kp P &kp Y &kp F &kp G &kp C &kp T &kp Z &dv_qmark_ss
&trans &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
&trans &trans &trans &trans &trans &trans
>;
};
quertz_de {
// -----------------------------------------------------------------------------------------
// | TAB | Q | W | E | R | T | | Z | U | I | O | P | Ü |
// | ESC | A | S | D | F | G | | H | J | K | L | Ö | Ä |
// | < | Y | X | C | V | B | | N | M | , | . | - | # |
// | EXT | SFT | ENT | | BSP | SPC | SYM |
bindings = <
&trans &kp Q &kp W &kp E &kp R &kp T &kp Z &kp U &kp I &kp O &kp P &de_ue
&trans &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &de_oe &de_ae
&de_lt_mt_pipe &kp Y &kp X &kp C &kp V &kp B &kp N &kp M &de_comma &de_dot &kp MINUS &de_hash
&trans &trans &trans &trans &trans &trans
2023-10-16 02:12:44 +02:00
>;
};
extend {
2023-10-16 02:12:44 +02:00
bindings = <
&trans &kp DEL &kp C_AC_BACK &kp C_AC_FIND &kp C_AC_FORWARD &kp INS &kp PG_UP &kp HOME &kp UP &kp END &none &kp BSPC
&trans &trans &trans &trans &trans &trans &kp PG_DN &kp LEFT &kp DOWN &kp RIGHT &none &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 PSCRN &none
&none &trans &trans &trans &trans &none
2023-10-16 02:12:44 +02:00
>;
};
symbol {
2023-10-16 02:12:44 +02:00
bindings = <
2023-11-17 03:12:03 +01:00
&de_car_deg &kp LBRC &kp LBKT &kp RBKT &kp RBRC &kp DLLR &kp EXCL &kp DQT &sym_copy &sym_tm &de_plus_str_tld &de_acute_grave
&none &trans &trans &trans &trans &trans &dv_qmark_ss &sym_sec &sym_reg &kp LPAR &kp RPAR &dv_slash
&none &de_lt_mt_pipe &none &none &kp AT &sym_eur &kp PRCNT &sym_mu &kp AMPS &kp EQUAL &de_hash &kp MINUS
&none &trans &trans &trans &trans &none
>;
};
function {
bindings = <
&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 &none
&trans &trans &trans &trans &trans &kp C_BRI_DN &kp F11 &kp F4 &kp F5 &kp F6 &to 1 &none
&none &kp C_MUTE &kp C_VOL_DN &kp LS(LC(C)) &kp C_VOL_UP &kp LC(LS(V)) &kp F10 &kp F1 &kp F2 &kp F3 &to 2 &none
&none &trans &trans &trans &trans &none
>;
};
number {
2023-11-09 23:22:56 +01:00
bindings = <
&trans &de_lt_mt_pipe &trans &trans &none &none &kp EQUAL &kp N7 &kp N8 &kp N9 &kp PLUS &kp BSPC
&trans &trans &trans &trans &trans &trans &kp STAR &kp N4 &kp N5 &kp N6 &kp MINUS &kp RET
&none &none &kp Y &kp TAB &kp BSPC &kp RET &kp N0 &kp N1 &kp N2 &kp N3 &kp FSLH &none
&none &trans &trans &trans &trans &none
>;
};
2023-10-16 02:12:44 +02:00
};
2023-10-13 14:39:58 +02:00
};