summaryrefslogtreecommitdiff
path: root/app/dts/behaviors/to_layer.dtsi
diff options
context:
space:
mode:
authorKemoNine <mcrosson@users.noreply.github.com>2020-12-29 11:57:49 -0500
committerGitHub <noreply@github.com>2020-12-29 11:57:49 -0500
commitd207c3c30f7f2d0648b32d59f481498fe048230c (patch)
tree885efa8c436c58fca8a5c39a952898f36d3da4e4 /app/dts/behaviors/to_layer.dtsi
parent43f6d798be70ef247b0717730ec34202cb81e96d (diff)
(feature) Add &to keycode/behavior (#489)
feat(behaviors): Add `&to` behavior to switch to a layer.
Diffstat (limited to 'app/dts/behaviors/to_layer.dtsi')
-rw-r--r--app/dts/behaviors/to_layer.dtsi15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/dts/behaviors/to_layer.dtsi b/app/dts/behaviors/to_layer.dtsi
new file mode 100644
index 0000000..b09616f
--- /dev/null
+++ b/app/dts/behaviors/to_layer.dtsi
@@ -0,0 +1,15 @@
+/*
+ * Copyright (c) 2020 The ZMK Contributors
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+/ {
+ behaviors {
+ to: behavior_to_layer {
+ compatible = "zmk,behavior-to-layer";
+ label = "TO_LAYER";
+ #binding-cells = <1>;
+ };
+ };
+};