summaryrefslogtreecommitdiff
path: root/app/dts
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-08-18 14:31:20 -0400
committerGitHub <noreply@github.com>2020-08-18 14:31:20 -0400
commitc054feb3c942b26bf0ddd0fc6e99ac8e3703e8d4 (patch)
treefc6e4cb070391573eb99f04898e35aa3de777785 /app/dts
parentc667be1404259851daca8719f08e1436b408fea9 (diff)
parent63e02d60dcfbf4e4d7f9954075d1e087f816944b (diff)
Merge pull request #100 from petejohanson/behaviors/add-none
Add `&none` behavior.
Diffstat (limited to 'app/dts')
-rw-r--r--app/dts/behaviors.dtsi1
-rw-r--r--app/dts/behaviors/none.dtsi15
-rw-r--r--app/dts/bindings/behaviors/zmk,behavior-none.yaml8
3 files changed, 24 insertions, 0 deletions
diff --git a/app/dts/behaviors.dtsi b/app/dts/behaviors.dtsi
index a47a8b8..4cfb7a0 100644
--- a/app/dts/behaviors.dtsi
+++ b/app/dts/behaviors.dtsi
@@ -1,5 +1,6 @@
#include <behaviors/key_press.dtsi>
#include <behaviors/transparent.dtsi>
+#include <behaviors/none.dtsi>
#include <behaviors/mod_tap.dtsi>
#include <behaviors/momentary_layer.dtsi>
#include <behaviors/toggle_layer.dtsi>
diff --git a/app/dts/behaviors/none.dtsi b/app/dts/behaviors/none.dtsi
new file mode 100644
index 0000000..e84ed49
--- /dev/null
+++ b/app/dts/behaviors/none.dtsi
@@ -0,0 +1,15 @@
+/*
+ * Copyright (c) 2020 Pete Johanson
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+/ {
+ behaviors {
+ none: behavior_none {
+ compatible = "zmk,behavior-none";
+ label = "NONE";
+ #binding-cells = <0>;
+ };
+ };
+};
diff --git a/app/dts/bindings/behaviors/zmk,behavior-none.yaml b/app/dts/bindings/behaviors/zmk,behavior-none.yaml
new file mode 100644
index 0000000..9c66c94
--- /dev/null
+++ b/app/dts/bindings/behaviors/zmk,behavior-none.yaml
@@ -0,0 +1,8 @@
+# Copyright (c) 2020, Pete Johanson
+# SPDX-License-Identifier: MIT
+
+description: None Binding Behavior
+
+compatible: "zmk,behavior-none"
+
+include: zero_param.yaml