summaryrefslogtreecommitdiff
path: root/app/tests/toggle-layer/behavior_keymap.dtsi
diff options
context:
space:
mode:
authorNick <nick.win999@gmail.com>2020-09-15 14:41:59 -0500
committerNick <nick.win999@gmail.com>2020-09-15 14:41:59 -0500
commit18d21b0362c5c09902836ed4791bd13e1efd9a9a (patch)
tree3f78a0ef43fc23e93195e1205a31f77154af7e76 /app/tests/toggle-layer/behavior_keymap.dtsi
parent81bc157f539235ad032fde78b6f6cec7a16d2c39 (diff)
parentc0806d27f1d048db335ecc854eab61b59e23ea7a (diff)
Merge remote-tracking branch 'upstream/main' into underglow/state-persistence
Diffstat (limited to 'app/tests/toggle-layer/behavior_keymap.dtsi')
-rw-r--r--app/tests/toggle-layer/behavior_keymap.dtsi28
1 files changed, 28 insertions, 0 deletions
diff --git a/app/tests/toggle-layer/behavior_keymap.dtsi b/app/tests/toggle-layer/behavior_keymap.dtsi
new file mode 100644
index 0000000..d2b41a9
--- /dev/null
+++ b/app/tests/toggle-layer/behavior_keymap.dtsi
@@ -0,0 +1,28 @@
+#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 = <
+ &kp B &tog 1
+ &kp D &kp G>;
+ };
+
+ lower_layer {
+ bindings = <
+ &cp M_NEXT &trans
+ &kp L &kp J>;
+ };
+
+ raise_layer {
+ bindings = <
+ &kp W &kp U
+ &kp X &kp M>;
+ };
+ };
+};