summaryrefslogtreecommitdiff
path: root/app/tests/hold-tap/balanced/behavior_keymap.dtsi
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-09-02 13:55:26 -0400
committerGitHub <noreply@github.com>2020-09-02 13:55:26 -0400
commit48a3729ffe269527bea948147f0b83ba1a1fa86d (patch)
tree73e5e7975138a88bb845e02b41c583d90a377c5f /app/tests/hold-tap/balanced/behavior_keymap.dtsi
parentc80b0a754b4b31cf303c2c9a26c51c72e56b0208 (diff)
parentc9a82d71d06146dfe706a2e8d223dab593dffffc (diff)
Merge pull request #146 from okke-formsma/hold-tap
Hold-Tap implementation
Diffstat (limited to 'app/tests/hold-tap/balanced/behavior_keymap.dtsi')
-rw-r--r--app/tests/hold-tap/balanced/behavior_keymap.dtsi27
1 files changed, 27 insertions, 0 deletions
diff --git a/app/tests/hold-tap/balanced/behavior_keymap.dtsi b/app/tests/hold-tap/balanced/behavior_keymap.dtsi
new file mode 100644
index 0000000..df56fb5
--- /dev/null
+++ b/app/tests/hold-tap/balanced/behavior_keymap.dtsi
@@ -0,0 +1,27 @@
+#include <dt-bindings/zmk/keys.h>
+#include <behaviors.dtsi>
+#include <dt-bindings/zmk/kscan-mock.h>
+
+/ {
+ behaviors {
+ ht_bal: behavior_hold_tap_balanced {
+ compatible = "zmk,behavior-hold-tap";
+ label = "HOLD_TAP_BALANCED";
+ #binding-cells = <2>;
+ flavor = "balanced";
+ tapping_term_ms = <300>;
+ bindings = <&kp>, <&kp>;
+ };
+ };
+
+ keymap {
+ compatible = "zmk,keymap";
+ label ="Default keymap";
+
+ default_layer {
+ bindings = <
+ &ht_bal LSFT F &ht_bal LCTL J
+ &kp D &kp RCTL>;
+ };
+ };
+};