You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
2.0 KiB
42 lines
2.0 KiB
#include <behaviors.dtsi> |
|
#include <dt-bindings/zmk/keys.h> |
|
|
|
#define DEF 0 |
|
#define LOW 1 |
|
#define HIGH 2 |
|
|
|
/ { |
|
keymap { |
|
compatible = "zmk,keymap"; |
|
|
|
default_layer { |
|
bindings = < |
|
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P |
|
&kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp ENTER |
|
&kp ESC &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT |
|
&kp LCTRL < LOW SPACE &kp LSHIFT &kp LMETA < HIGH BSPC &kp LALT |
|
>; |
|
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>; |
|
}; |
|
|
|
low_layer { |
|
bindings = < |
|
&kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 |
|
&trans &trans &kp LBKT &kp RBKT &kp INS &kp PG_UP &kp EQUAL &kp MINUS &kp TAB &trans |
|
&trans &kp GRAVE &kp BSLH &kp FSLH &kp DEL &kp PG_DN &kp SEMI &kp SQT &kp HOME &kp END |
|
&trans &trans &trans &trans &trans &trans |
|
>; |
|
sensor-bindings = <&inc_dec_kp C_AC_SCROLL_UP C_AC_SCROLL_DOWN>; |
|
}; |
|
|
|
high_layer { |
|
bindings = < |
|
&trans &kp UP &kp K_PREV &kp K_PP &kp K_NEXT &kp F1 &kp F2 &kp F3 &kp F4 &trans |
|
&kp LEFT &kp DOWN &kp RIGHT &trans &trans &kp F5 &kp F6 &kp F7 &kp F8 &trans |
|
&trans &trans &kp PSCRN &kp SLCK &kp PAUSE_BREAK &kp F9 &kp F10 &kp F11 &kp F12 &trans |
|
&trans &trans &trans &trans &trans &trans |
|
>; |
|
sensor-bindings = <&inc_dec_kp C_BRI_INC C_BRI_DEC>; |
|
}; |
|
}; |
|
}; |