This commit is contained in:
keymap-editor[bot] 2024-07-05 18:13:32 +00:00 committed by GitHub
parent 8f9f3cd29e
commit c55c0b1968
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,31 +1,32 @@
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h> #include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/mouse.h>
/ { / {
behaviors { behaviors {
lgui1_1: lgui1_1 { lgui1_1: lgui1_1 {
compatible = "zmk,behavior-tap-dance"; compatible = "zmk,behavior-tap-dance";
label = "LGUI1_1"; label = "LGUI1_1";
bindings = <&kp LG(N1)>, <&to 1> ; bindings = <&kp LG(N1)>, <&to 1>;
}; };
lgui2_2: lgui2_2 { lgui2_2: lgui2_2 {
compatible = "zmk,behavior-tap-dance"; compatible = "zmk,behavior-tap-dance";
label = "LGUI2_2"; label = "LGUI2_2";
bindings = <&kp LG(N2)>, <&to 2> ; bindings = <&kp LG(N2)>, <&to 2>;
}; };
lgui3_3: lgui3_3 { lgui3_3: lgui3_3 {
compatible = "zmk,behavior-tap-dance"; compatible = "zmk,behavior-tap-dance";
label = "LGUI3_3"; label = "LGUI3_3";
bindings = <&kp LG(N3)>, <&to 3> ; bindings = <&kp LG(N3)>, <&to 3>;
}; };
lgui4_4: lgui4_4 { lgui4_4: lgui4_4 {
compatible = "zmk,behavior-tap-dance"; compatible = "zmk,behavior-tap-dance";
label = "LGUI4_4"; label = "LGUI4_4";
bindings = <&kp LG(N4)>, <&to 4> ; bindings = <&kp LG(N4)>, <&to 4>;
}; };
lgui5_5: lgui5_5 { lgui5_5: lgui5_5 {
@ -72,86 +73,95 @@
compatible = "zmk,keymap"; compatible = "zmk,keymap";
label = "ninepad"; label = "ninepad";
# layer 0 # layer 0
default_layer { default_layer {
label = "Default"; label = "Default";
bindings = < bindings = <
&lgui7_7 &lgui8_8 &lgui9_9 &lgui7_7 &lgui8_8 &lgui9_9
&lgui4_4 &lgui5_5 &lgui6_6 &lgui4_4 &lgui5_5 &lgui6_6
&lgui1_1 &lgui2_2 &lgui3_3 &lgui1_1 &lgui2_2 &lgui3_3
>; >;
}; };
# layer 1 # layer 1
media { media {
bindings = < bindings = <
&kp K_PREVIOUS &kp K_VOL_UP &kp RS(K_NEXT) &lt 7 K_PREVIOUS &kp K_VOL_UP &kp RS(K_NEXT)
&kp K_PLAY_PAUSE &kp K_VOL_DN &trans &kp K_PLAY_PAUSE &kp K_VOL_DN &trans
&to 0 &trans &trans &to 0 &trans &trans
>; >;
}; };
# layer 2 # layer 2
bt_layer { bt_layer {
label = "bt"; label = "bt";
bindings = < bindings = <
&bootloader &none &bootloader &lt 7 A &none &bootloader
&none &kp A &bt BT_CLR &none &kp A &bt BT_CLR
&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2
>; >;
}; };
# layer 3 # layer 3
minecraft_1 { minecraft_1 {
bindings = < bindings = <
&kp Q &kp W &kp E &lt 7 Q &kp W &kp E
&kp A &kp S &kp D &kp A &kp S &kp D
&kp LSHFT &kp LCTRL &kp SPACE &kp LSHFT &kp LCTRL &kp SPACE
>; >;
}; };
# layer 4 # layer 4
minecraft_2 { minecraft_2 {
bindings = < bindings = <
&kp Q &trans &trans &lt 7 B &kp F5 &kp F3
&kp ESCAPE &kp F &kp LS(TILDE) &kp ESCAPE &kp F &kp GRAVE
&to 0 &trans &trans &trans &trans &trans
>; >;
}; };
# layer 5 # layer 5
arrows { arrows {
bindings = < bindings = <
&kp PG_DN &kp UP &kp PG_UP &lt 7 PAGE_DOWN &kp UP &kp PG_UP
&kp LEFT &kp UP &kp RIGHT &kp LEFT &kp UP &kp RIGHT
&kp HOME &kp ESC &kp END &kp HOME &kp ESC &kp END
>; >;
}; };
# layer 6 # layer 6
mouse { mouse {
bindings = < bindings = <
&trans &trans &trans &lt 7 A &mmv MOVE_UP &trans
&trans &trans &trans &mmv MOVE_LEFT &mmv MOVE_DOWN &mmv MOVE_RIGHT
&trans &trans &trans &mkp MB1 &mkp MB3 &mkp MB2
>; >;
}; };
# layer 7 # layer 7
reset { reset {
bindings = < bindings = <
&trans &trans &to 0 &trans &trans &to 0
&trans &trans &trans &trans &trans &trans
&trans &trans &bootloader &to 1 &to 2 &bootloader
>; >;
}; };
# layer 8 # layer 8
numpad { numpad {
bindings = < bindings = <
&kp N7 &kp N8 &kp N9 &lt 7 N7 &kp N8 &kp N9
&kp N4 &kp N5 &kp N6 &kp N4 &kp N5 &kp N6
&kp N1 &kp N2 &kp N3 &kp N1 &kp N2 &kp N3
>; >;
}; };
}; };