summaryrefslogtreecommitdiff
path: root/utils/homerow.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/homerow.h')
-rw-r--r--utils/homerow.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/utils/homerow.h b/utils/homerow.h
new file mode 100644
index 0000000..c8fe06f
--- /dev/null
+++ b/utils/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)
+