Finalize zmk 7skb bring up with latest keymap

This commit is contained in:
KemoNine 2021-04-24 19:29:50 +00:00
parent b983479d3d
commit d50f7d9618

View file

@ -8,17 +8,63 @@
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h> #include <dt-bindings/zmk/bt.h>
#define LAYER_ID_DEFAULT 0
#define LAYER_ID_FUNC 1
#define LAYER_ID_ALT 2
/ { / {
behaviors {
tildeesc: tilde_escape {
compatible = "zmk,behavior-mod-morph";
label = "TILDE_ESCAPE";
#binding-cells = <0>;
bindings = <&kp ESC>, <&kp TILDE>;
mods = <(MOD_LSFT)>;
};
};
combos {
compatible = "zmk,combos";
combo_layer_navigation {
key-positions = <35 20 37>;
bindings = <&tog LAYER_ID_FUNC>;
};
};
keymap { keymap {
compatible = "zmk,keymap"; compatible = "zmk,keymap";
default_layer { default_layer {
label = "ANSI";
bindings = < bindings = <
&kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS &kp EQUAL &kp BACKSLASH &kp GRAVE &tildeesc &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS &kp EQUAL &kp BSPC &kp BSPC
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LBRC &kp RBRC &kp BACKSPACE &kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LBKT &kp RBKT &kp BSLH
&kp LCTRL &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SINGLE_QUOTE &kp ENTER &mo LAYER_ID_ALT &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT &kp ENTER
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SLASH &kp RSHFT &kp N7 &kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SLASH &kp RSHFT &none
&kp LALT &kp LGUI &kp SPACE &kp N1 &kp N2 &kp SPACE &kp RGUI &kp RALT &kp LCTRL &kp LGUI &kp LALT &kp SPACE &tog LAYER_ID_FUNC &mo LAYER_ID_FUNC &kp RCTRL &kp RALT
>;
};
function_layer {
label = "Function";
bindings = <
&kp GRAVE &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &kp DEL &kp DEL
&kp CAPS &kp PG_UP &kp HOME &kp END &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp INS
&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 &bootloader &reset &kp C_PLAY_PAUSE
&trans &trans &trans &trans &trans &kp C_VOL_UP &kp C_VOL_DN &kp C_MUTE
>;
};
alt_layer {
label = "Alt";
bindings = <
&trans &kp LA(F1) &kp LA(F2) &kp LA(F3) &kp LA(F4) &kp LA(F5) &kp LA(F6) &kp LA(F7) &kp LA(F8) &kp LA(F9) &kp LA(F10) &kp LA(F11) &kp LA(F12) &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
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &none
&trans &trans &trans &trans &trans &trans &trans &trans
>; >;
}; };
}; };