63 lines
2.8 KiB
Text
63 lines
2.8 KiB
Text
#include <behaviors.dtsi>
|
|
#include <dt-bindings/zmk/keys.h>
|
|
#include <dt-bindings/zmk/bt.h>
|
|
#include <dt-bindings/zmk/mouse.h>
|
|
|
|
/ {
|
|
macros {
|
|
ZMK_MACRO(ploopy_toggle,
|
|
wait-ms = <5>;
|
|
tap-ms = <5>;
|
|
bindings = <&kp KP_NUM &kp KP_NUM>;
|
|
)
|
|
};
|
|
|
|
conditional_layers {
|
|
compatible = "zmk,conditional-layers";
|
|
tri_layer {
|
|
if-layers = <1 2>;
|
|
then-layer = <3>;
|
|
};
|
|
};
|
|
|
|
keymap {
|
|
compatible = "zmk,keymap";
|
|
|
|
|
|
default_layer {
|
|
bindings = <
|
|
&kp TAB &kp SQT &kp COMMA &kp DOT &kp P &kp Y &kp F &kp G &kp C &kp R &kp L &kp BSPC
|
|
&kp ESC &kp A &kp O &kp E &kp U &kp I &kp D &kp H &kp T &kp N &kp S &kp MINUS
|
|
&kp LCTRL &kp SEMI &kp Q &kp J &kp K &kp X &kp B &kp M &kp W &kp V &kp Z &kp LALT
|
|
&kp LSHFT &kp LGUI < 2 RET < 1 SPACE &kp RGUI &kp RSHFT
|
|
>;
|
|
};
|
|
|
|
layer_raise {
|
|
bindings = <
|
|
&trans &trans &trans &trans &kp LBKT &kp RBKT &kp BSLH &kp FSLH &kp GRAVE &kp EQUAL &kp DEL &trans
|
|
&trans &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &trans
|
|
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp LCTRL
|
|
&trans &trans &trans &trans &trans &trans
|
|
>;
|
|
};
|
|
|
|
layer_lower {
|
|
bindings = <
|
|
&trans &none &kp PSCRN &kp UP &mkp LCLK &mkp RCLK &kp RET &kp SPACE &kp PG_UP &kp INS &kp K_VOL_UP &trans
|
|
&trans &kp K_BACK &kp LEFT &kp DOWN &kp RIGHT &ploopy_toggle &trans &kp HOME &kp PG_DN &kp END &kp K_PLAY_PAUSE &trans
|
|
&kp LALT &kp K_FORWARD &trans &trans &trans &mkp MCLK &kp F11 &kp F12 &trans &kp K_MUTE &kp K_VOL_DN &trans
|
|
&trans &trans &trans &trans &trans &trans
|
|
>;
|
|
};
|
|
|
|
layer_adjust {
|
|
bindings = <
|
|
&bootloader &none &none &none &none &none &none &none &none &none &none &bootloader
|
|
&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
|
|
&none &none &none &none &none &none &none &none &none &none &none &none
|
|
&none &none &trans &trans &none &none
|
|
>;
|
|
};
|
|
};
|
|
};
|