summaryrefslogtreecommitdiff
path: root/config/includes/homerow.h
diff options
context:
space:
mode:
authorjakobst1n <jakob.stendahl@outlook.com>2024-03-13 18:19:28 +0100
committerjakobst1n <jakob.stendahl@outlook.com>2024-03-13 18:19:28 +0100
commit6bf324125af9010ccd81a50738cf8dcb20f40365 (patch)
treed01c74767ad05814857e86b2fbd7eeb2816b88da /config/includes/homerow.h
parent05ae4f4cd561108e7fd8db405806a1bf1abb45da (diff)
downloadzmk-config-6bf324125af9010ccd81a50738cf8dcb20f40365.tar.gz
zmk-config-6bf324125af9010ccd81a50738cf8dcb20f40365.zip
Tweak
Diffstat (limited to 'config/includes/homerow.h')
-rw-r--r--config/includes/homerow.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/config/includes/homerow.h b/config/includes/homerow.h
new file mode 100644
index 0000000..c8fe06f
--- /dev/null
+++ b/config/includes/homerow.h
@@ -0,0 +1,22 @@
+#pragma once
+
+#define MAKE_HRM(NAME, HOLD, TAP) \
+ / { \
+ behaviours { \
+ NAME: NAME { \
+ label = ZMK_HELPER_STRINGIFY(ZB_ ## NAME); \
+ compatible = "zmk,behavior-hold-tap"; \
+ #binding-cells = <2>; \
+ flavor = "balanced"; \
+ tapping-term-ms = <280>; \
+ quick-tap-ms = <QUICK_TAP_MS>; \
+ require-prior-idle-ms = <150>; \
+ bindings = <HOLD>, <TAP>; \
+ hold-trigger-on-release; \
+ }; \
+ }; \
+ };
+
+MAKE_HRM(hml, &kp, &kp)
+MAKE_HRM(hmr, &kp, &kp)
+