(feature) Add &to keycode/behavior (#489)

feat(behaviors): Add `&to` behavior to switch to a layer.
This commit is contained in:
KemoNine
2020-12-29 11:57:49 -05:00
committed by GitHub
parent 43f6d798be
commit d207c3c30f
12 changed files with 183 additions and 10 deletions

View File

@@ -0,0 +1,22 @@
#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>;
};
};
};