simplified Macros, added Shift-Layer, Real ESC Key

This commit is contained in:
kB01 2023-11-03 14:04:46 +01:00
parent 2af5d2e295
commit 9db34d39c0

View file

@ -115,40 +115,19 @@
nav_space_prev: nav_space_prev { nav_space_prev: nav_space_prev {
compatible = "zmk,behavior-macro"; compatible = "zmk,behavior-macro";
#binding-cells = <0>; #binding-cells = <0>;
bindings = bindings = <&sk LCTRL &sk LGUI &kp LEFT>;
<&macro_press>,
<&kp LCTRL &kp LGUI>,
<&macro_tap>,
<&kp LEFT>,
<&macro_release>,
<&kp LGUI &kp LCTRL>;
label = "NAV_SPACE_PREV"; label = "NAV_SPACE_PREV";
}; };
nav_win_next: nav_win_next { nav_win_next: nav_win_next {
compatible = "zmk,behavior-macro"; compatible = "zmk,behavior-macro";
#binding-cells = <0>; #binding-cells = <0>;
bindings = bindings = <&sk LALT &kp TAB>;
<&macro_press>,
<&kp LALT>,
<&macro_tap>,
<&kp TAB>,
<&macro_release>,
<&kp LALT>;
label = "NAV_WIN_NEXT"; label = "NAV_WIN_NEXT";
}; };
nav_win_prev: nav_win_prev { nav_win_prev: nav_win_prev {
compatible = "zmk,behavior-macro"; compatible = "zmk,behavior-macro";
#binding-cells = <0>; #binding-cells = <0>;
bindings = bindings = <&sk LALT &sk LSHIFT &kp TAB>;
<&macro_press>,
<&kp LALT &kp LSHFT>,
<&macro_tap>,
<&kp TAB>,
<&macro_release>,
<&kp LSHFT &kp LALT>;
label = "NAV_WIN_PREV"; label = "NAV_WIN_PREV";
}; };
nav_desktop: nav_desktop { nav_desktop: nav_desktop {
@ -157,6 +136,25 @@
bindings = <&sk LGUI &kp D>; bindings = <&sk LGUI &kp D>;
label = "NAV_DESKTOP"; label = "NAV_DESKTOP";
}; };
shift_trans: shift_trans {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings =
<&macro_press>,
<&kp LSHIFT>,
<&macro_tap>,
<&trans>,
<&macro_release>,
<&kp LSHIFT>;
label = "SHIFT_TRANS";
};
sym_deg: sym_deg {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp RALT &kp O &kp O>;
label = "SYM_DEG";
};
}; };
keymap { keymap {
@ -170,10 +168,10 @@
// | CTRL| GUI | SPC | | ENT | RSE | ALT | // | CTRL| GUI | SPC | | ENT | RSE | ALT |
bindings = < bindings = <
&mt ESC TAB &de_ue &mt SEMICOLON COMMA &mt COLON DOT &kp P &kp Y &kp F &kp G &kp C &kp T &kp Z &kp BACKSPACE &kp TAB &de_ue &kp COMMA &kp PERIOD &kp P &kp Y &kp F &kp G &kp C &kp T &kp Z &kp BACKSPACE
&kp CARET &kp A &kp O &kp E &kp I &kp U &kp H &kp D &kp R &mt LEFT_PARENTHESIS N &mt RIGHT_PARENTHESIS S &mt ENTER L &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 &mt APOS HASH &kp MINUS &de_ae &de_oe &kp Q &kp J &kp K &kp X &kp B &kp M &kp W &kp V &kp HASH &kp MINUS
&kp LCTRL &kp LEFT_GUI &kp SPACE &to 1 &kp RSHIFT &mo 4 &kp LCTRL &kp LEFT_GUI &kp SPACE &to 1 &mo 5 &mo 4
>; >;
}; };
@ -224,5 +222,14 @@
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>; >;
}; };
shift {
bindings = <
&trans &shift_trans &kp SEMI &kp LS(SEMI) &shift_trans &shift_trans &shift_trans &shift_trans &shift_trans &shift_trans &shift_trans &shift_trans
&trans &shift_trans &shift_trans &shift_trans &shift_trans &shift_trans &shift_trans &shift_trans &shift_trans &shift_trans &shift_trans &shift_trans
&shift_trans &shift_trans &shift_trans &shift_trans &shift_trans &shift_trans &shift_trans &shift_trans &shift_trans &shift_trans &kp SQT &shift_trans
&trans &trans &trans &trans &trans &trans
>;
};
}; };
}; };