What have I done lmao

This commit is contained in:
2024-06-17 07:37:12 +10:00
committed by GitHub
parent 21b1b0c5aa
commit b1d4e90e22

View File

@@ -3,20 +3,22 @@
*
* SPDX-License-Identifier: MIT
*/
// Keymap Editor: https://nickcoutsos.github.io/keymap-editor/
#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/rgb.h>
// Define layer indices for easy reference
#define BASE 0
#define LOWER 1
#define RAISE 2
#define ADJUST 3
{
// Activate ADJUST layer by pressing raise and lower
// Conditional layer activation
// Activates ADJUST layer when both RAISE and LOWER layers are active
conditional_layers {
compatible = "zmk,conditional-layers";
@@ -26,75 +28,86 @@
};
};
behaviors {
new_behavior: new_behavior {
compatible = "zmk,behavior-tap-dance";
label = "NEW_BEHAVIOR";
#binding-cells = <0>;
bindings = <&kp A>, <&kp B>, <&kp C>;
};
};
// Keymap definition
keymap {
compatible = "zmk,keymap";
// Default layer (Base layer)
default_layer {
display-name = "Base";
// Key bindings for the Base layer
bindings = <
&mt GRAVE ESCAPE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &none
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
&kp LEFT_SHIFT &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
&kp LCTRL &kp Z &kp X &kp C &kp V &kp B &kp C_MUTE &none &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
&kp F13 &kp LGUI &kp LALT &mo LOWER &kp SPACE &kp RET &mo RAISE &kp RALT &kp RGUI &kp RCTRL
&kp F13 &kp LGUI &kp LALT &mo LOWER &kp SPACE &kp RET &mo RAISE &kp RALT &kp RGUI &kp RCTRL
>;
// Sensor bindings for the Base layer
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
};
// Lower layer
lower_layer {
display-name = "Lower";
// Key bindings for the Lower layer
bindings = <
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11
&kp GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp F12
&trans &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp ASTRK &kp LPAR &kp RPAR &kp PIPE
&new_behavior &kp EQUAL &kp MINUS &kp PLUS &kp LBRC &kp RBRC &soft_off &trans &kp LBKT &kp RBKT &kp SEMI &kp COLON &kp BSLH &trans
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11
&kp GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp F12
&trans &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp ASTRK &kp LPAR &kp RPAR &kp PIPE
&soft_off &kp EQUAL &kp MINUS &kp PLUS &kp LBRC &kp RBRC &soft_off &trans &kp LBKT &kp RBKT &kp SEMI &kp COLON &kp BSLH &trans
&trans &to 4 &trans &trans &trans &trans &trans &trans &trans &trans
>;
// Sensor bindings for the Lower layer
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
};
// Raise layer
raise_layer {
display-name = "Upper";
// Key bindings for the Raise layer
bindings = <
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans &trans &trans &trans &trans &trans
&trans &kp INS &kp PSCRN &kp K_CMENU &trans &trans &kp PG_UP &trans &kp UP &trans &kp N0 &trans
&trans &kp LALT &kp LCTRL &kp LSHFT &trans &kp CLCK &kp PG_DN &kp LEFT &kp DOWN &kp RIGHT &kp DEL &kp BSPC
&trans &kp K_UNDO &kp K_CUT &kp K_COPY &kp K_PASTE &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
>;
// Sensor bindings for the Raise layer
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
};
// Adjust layer
adjust_layer {
display-name = "Adjust";
// Key bindings for the Adjust layer
bindings = <
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &none &none &none &none &none
&ext_power EP_TOG &rgb_ug RGB_HUD &rgb_ug RGB_HUI &rgb_ug RGB_SAD &rgb_ug RGB_SAI &rgb_ug RGB_EFF &none &none &none &none &none &none
&none &rgb_ug RGB_BRD &rgb_ug RGB_BRI &none &none &none &none &none &none &none &none &none
&none &none &none &none &none &none &rgb_ug RGB_TOG &none &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &none
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &none &none &none &none &none
&ext_power EP_TOG &rgb_ug RGB_HUD &rgb_ug RGB_HUI &rgb_ug RGB_SAD &rgb_ug RGB_SAI &rgb_ug RGB_EFF &none &none &none &none &none &none
&none &rgb_ug RGB_BRD &rgb_ug RGB_BRI &none &none &none &none &none &none &none &none &none
&none &none &none &none &none &none &rgb_ug RGB_TOG &none &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &none
>;
};
// Custom layer for COD:MW3 game
COD {
display-name = "COD:MW3";
// Key bindings for the COD:MW3 layer
bindings = <
&trans &kp TAB &kp N1 &kp N2 &kp N3 &kp N4 &trans &trans &trans &trans &trans &trans
&kp B &kp T &kp Q &kp W &kp E &kp R &trans &trans &trans &trans &trans &trans
&kp I &kp LSHFT &kp A &kp S &kp D &kp F &trans &trans &trans &trans &trans &trans
&kp LGUI &kp LCTRL &kp Z &kp X &kp C &kp V &kp M &trans &trans &trans &trans &trans &trans &trans
&kp LALT &to 0 &kp G &kp C &kp SPACE &trans &trans &trans &trans &trans
&kp LALT &to 0 &kp G &kp C &kp SPACE &trans &trans &trans &trans &trans
>;
};
};