add gaming layer

This commit is contained in:
keymap-editor[bot]
2025-07-04 23:57:26 +00:00
parent e73bb113a1
commit 44b50fe361
+20 -6
View File
@@ -5,6 +5,7 @@
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/ext_power.h>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/pointing.h>
@@ -57,7 +58,7 @@
bindings = <
&kp GRAVE &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &trans &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &to 4
&msc SCRL_UP &kp C_VOLUME_DOWN &kp C_PREVIOUS &kp UP &kp C_NEXT &kp C_VOLUME_UP &trans &rgb_ug RGB_HUD &rgb_ug RGB_HUI &kp INS &kp DEL &kp MINUS &kp EQUAL
&msc SCRL_DOWN &trans &kp LEFT &kp DOWN &kp RIGHT &to 4 &trans &rgb_ug RGB_SAD &rgb_ug RGB_SAI &kp HOME &kp END &kp LEFT_BRACKET &kp RIGHT_BRACKET
&msc SCRL_DOWN &trans &kp LEFT &kp DOWN &kp RIGHT &to 5 &trans &rgb_ug RGB_SAD &rgb_ug RGB_SAI &kp HOME &kp END &kp LEFT_BRACKET &kp RIGHT_BRACKET
&trans &trans &rgb_ug RGB_TOG &rgb_ug RGB_EFF &rgb_ug RGB_SPD &rgb_ug RGB_SPI &trans &rgb_ug RGB_BRD &rgb_ug RGB_BRI &kp PG_UP &kp PG_DN &kp F12 &trans
&kp C_PLAY_PAUSE &trans &trans &mo 2 &trans &trans &trans &trans &trans &mo 2 &trans &trans
>;
@@ -68,11 +69,11 @@
Layer2 {
bindings = <
&kp TILDE &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &trans
&trans &bt BT_CLR &bt BT_CLR_ALL &trans &trans &trans &trans &trans &trans &kp F11 &kp F12 &kp UNDER &kp PLUS
&trans &out OUT_USB &out OUT_BLE &trans &trans &trans &trans &trans &trans &trans &trans &kp LBRC &kp RBRC
&trans &sys_reset &trans &bootloader &trans &trans &trans &trans &trans &sys_reset &soft_off &bootloader &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&kp TILDE &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &trans
&bt BT_CLR &bt BT_CLR_ALL &trans &trans &trans &trans &trans &rgb_ug RGB_HUD &rgb_ug RGB_HUI &kp F11 &kp F12 &kp UNDER &kp PLUS
&out OUT_TOG &ext_power EP_TOG &trans &trans &trans &trans &trans &rgb_ug RGB_SAD &rgb_ug RGB_SAI &trans &trans &kp LBRC &kp RBRC
&bootloader &sys_reset &rgb_ug RGB_TOG &rgb_ug RGB_EFF &rgb_ug RGB_SPD &rgb_ug RGB_SPI &trans &rgb_ug RGB_BRD &rgb_ug RGB_BRI &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;
label = "Layer 2";
@@ -101,5 +102,18 @@
label = "Layer 4";
};
Gaming {
bindings = <
&kp ESC &kp NUMBER_1 &kp NUMBER_2 &kp NUMBER_3 &kp NUMBER_4 &kp NUMBER_5 &none &none &none &none &none &none &none
&kp U &kp TAB &kp Q &kp W &kp E &kp R &none &none &none &none &none &none &none
&kp I &kp LEFT_SHIFT &kp A &kp S &kp D &kp F &none &none &none &none &none &none &none
&kp O &kp LCTRL &kp Z &kp X &kp C &kp V &none &none &none &none &none &none &none
&to 0 &kp J &kp K &kp L &kp SPACE &kp ENTER &none &none &none &none &none &none
>;
label = "Gaming";
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
};
};
};