diff options
author | jakobst1n <jakob.stendahl@outlook.com> | 2023-11-29 22:24:09 +0100 |
---|---|---|
committer | jakobst1n <jakob.stendahl@outlook.com> | 2023-11-29 22:24:09 +0100 |
commit | a28160a193efd27679495c24d3582e151f9d3a14 (patch) | |
tree | b5710b40d248a43d2379858ae28b3d6472fd0433 /utils | |
parent | 1ff6afebd619213e30acc3b167b44ddfe01fd6f1 (diff) | |
download | zmk-config-a28160a193efd27679495c24d3582e151f9d3a14.tar.gz zmk-config-a28160a193efd27679495c24d3582e151f9d3a14.zip |
Add homerow mods on example from urob
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 { \ |