diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/homerow.h | 22 | ||||
-rw-r--r-- | utils/unicode.h | 2 |
2 files changed, 24 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) + diff --git a/utils/unicode.h b/utils/unicode.h index f202fda..df2b298 100644 --- a/utils/unicode.h +++ b/utils/unicode.h @@ -1,3 +1,5 @@ +#pragma once + #define COMBO(name, POS, LAYERS, BINDINGS) \ / { \ combos { \ |