summaryrefslogtreecommitdiff
path: root/app/dts
diff options
context:
space:
mode:
authorCrossR <r.cross@lancaster.ac.uk>2020-08-19 20:53:40 +0100
committerCrossR <r.cross@lancaster.ac.uk>2020-08-19 20:53:40 +0100
commitf8a635aaa0b379d499c0b4c4cd5d7831e1fda7fd (patch)
treeb2adb5a989b2a67360aea46abe0d13ffa02734a9 /app/dts
parentdcd36f12e049ee2c423204ebaaa3c16062d9fd5e (diff)
parentebd6fbb2254cfcdd8af6309dd9a5c3251ac19935 (diff)
Merge remote-tracking branch 'upstream/main' into CrossR/Sofle
Diffstat (limited to 'app/dts')
-rw-r--r--app/dts/behaviors.dtsi2
-rw-r--r--app/dts/behaviors/none.dtsi15
-rw-r--r--app/dts/behaviors/toggle_layer.dtsi15
-rw-r--r--app/dts/bindings/behaviors/zmk,behavior-none.yaml8
-rw-r--r--app/dts/bindings/behaviors/zmk,behavior-toggle-layer.yaml8
-rw-r--r--app/dts/bindings/zmk,bt-unpair-combo.yaml12
6 files changed, 60 insertions, 0 deletions
diff --git a/app/dts/behaviors.dtsi b/app/dts/behaviors.dtsi
index 04e42b6..4cfb7a0 100644
--- a/app/dts/behaviors.dtsi
+++ b/app/dts/behaviors.dtsi
@@ -1,7 +1,9 @@
#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>
#include <behaviors/reset.dtsi>
#include <behaviors/sensor_rotate_key_press.dtsi>
#include <behaviors/rgb_underglow.dtsi> \ No newline at end of file
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/behaviors/toggle_layer.dtsi b/app/dts/behaviors/toggle_layer.dtsi
new file mode 100644
index 0000000..86a050d
--- /dev/null
+++ b/app/dts/behaviors/toggle_layer.dtsi
@@ -0,0 +1,15 @@
+/*
+ * Copyright (c) 2020 Cody McGinnis <brainwart@gmail.com>
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+ / {
+ behaviors {
+ tog: behavior_toggle_layer {
+ compatible = "zmk,behavior-toggle-layer";
+ label = "TOGGLE_LAYER";
+ #binding-cells = <1>;
+ };
+ };
+};
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
diff --git a/app/dts/bindings/behaviors/zmk,behavior-toggle-layer.yaml b/app/dts/bindings/behaviors/zmk,behavior-toggle-layer.yaml
new file mode 100644
index 0000000..065949f
--- /dev/null
+++ b/app/dts/bindings/behaviors/zmk,behavior-toggle-layer.yaml
@@ -0,0 +1,8 @@
+# Copyright (c) 2020, Cody McGinnis <brainwart@gmail.com>
+# SPDX-License-Identifier: MIT
+
+description: Toggle Layer
+
+compatible: "zmk,behavior-toggle-layer"
+
+include: one_param.yaml
diff --git a/app/dts/bindings/zmk,bt-unpair-combo.yaml b/app/dts/bindings/zmk,bt-unpair-combo.yaml
new file mode 100644
index 0000000..d781347
--- /dev/null
+++ b/app/dts/bindings/zmk,bt-unpair-combo.yaml
@@ -0,0 +1,12 @@
+# Copyright (c) 2020, Pete Johanson
+# SPDX-License-Identifier: MIT
+
+description: |
+ Defines a set of key positions that will unpair all BT devices if held on startup.
+
+compatible: "zmk,bt-unpair-combo"
+
+properties:
+ key-positions:
+ type: array
+ required: true