5ffd95694f
* Refactor Kyria into separate left/right "revisions" of the Kyria shield, and include central kyria.dtsi file with common definition. * Fixes for keymaps to work fully with matrix transforms that override effective rows/columns. * Add ability for matrix transform to do row/col offsets, which is needed for split keyboards.
34 lines
1.5 KiB
Text
34 lines
1.5 KiB
Text
#include <behaviors.dtsi>
|
|
#include <dt-bindings/zmk/keys.h>
|
|
#include <dt-bindings/zmk/matrix-transform.h>
|
|
|
|
/ {
|
|
chosen {
|
|
zmk,keymap = &keymap0;
|
|
};
|
|
|
|
keymap0: keymap {
|
|
compatible = "zmk,keymap";
|
|
label ="Default Kyria Keymap";
|
|
layers = <&default>;
|
|
};
|
|
|
|
layers {
|
|
compatible = "zmk,layers";
|
|
|
|
default: layer_0 {
|
|
label = "DEFAULT";
|
|
// ---------------------------------------------------------------------------------------------------------------------------------
|
|
// | ESC | Q | W | E | R | T | | Y | U | I | O | P | "|" |
|
|
// | <- | A | S | D | F | G | | H | J | K | L | ; | ' |
|
|
// | SHIFT | Z | X | C | V | B | L SHIFT | L SHIFT | | L SHIFT | L SHIFT | N | M | , | . | / | - |
|
|
// | GUI | DEL | RET | SPACE | ESC | | RET | SPACE | TAB | BSPC | R-ALT |
|
|
bindings = <
|
|
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp PIPE
|
|
&kp BKSP &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SCLN &kp QUOT
|
|
&kp LSFT &kp Z &kp X &kp C &kp V &kp B &kp LSFT &kp LSFT &kp LSFT &kp LSFT &kp N &kp M &kp CMMA &kp DOT &kp BSLH &kp MINUS
|
|
&kp LGUI &kp DEL &kp RET &kp SPC &kp ESC &kp RET &kp SPC &kp TAB &kp BKSP &kp RALT
|
|
>;
|
|
};
|
|
};
|
|
};
|