d207c3c30f
feat(behaviors): Add `&to` behavior to switch to a layer.
22 lines
327 B
Text
22 lines
327 B
Text
#include <dt-bindings/zmk/keys.h>
|
|
#include <behaviors.dtsi>
|
|
#include <dt-bindings/zmk/kscan-mock.h>
|
|
|
|
/ {
|
|
keymap {
|
|
compatible = "zmk,keymap";
|
|
label ="Default keymap";
|
|
|
|
default_layer {
|
|
bindings = <
|
|
&to 0 &to 1
|
|
&kp A &kp S>;
|
|
};
|
|
|
|
second_layer {
|
|
bindings = <
|
|
&to 0 &to 1
|
|
&kp J &kp K>;
|
|
};
|
|
};
|
|
};
|