diff options
author | jakobst1n <jakob.stendahl@outlook.com> | 2024-01-27 00:17:50 +0100 |
---|---|---|
committer | jakobst1n <jakob.stendahl@outlook.com> | 2024-01-27 01:08:56 +0100 |
commit | fa935f17408d7373b9419bf19b9cecc48f363765 (patch) | |
tree | 8c8ac112bf0087debd90d844adb6c41e9cf60e31 /config/utils | |
parent | 20c10e8ed1d3710cb83367ca18202e7f160f2506 (diff) | |
download | zmk-config-fa935f17408d7373b9419bf19b9cecc48f363765.tar.gz zmk-config-fa935f17408d7373b9419bf19b9cecc48f363765.zip |
ps2
Diffstat (limited to 'config/utils')
-rw-r--r-- | config/utils/common.h | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/config/utils/common.h b/config/utils/common.h index babff13..57ee0d0 100644 --- a/config/utils/common.h +++ b/config/utils/common.h @@ -2,7 +2,7 @@ #define XXX &none #ifndef QUICK_TAP_MS - #define QUICK_TAP_MS 175 + #define QUICK_TAP_MS 172 #endif #define ZMK_HELPER_STRINGIFY(x) #x @@ -25,6 +25,33 @@ }; +// Some general behaviours that are slightly tweaked from the core +/ { + behaviours { + kp_mo: behavior_kp_mo { + compatible = "zmk,behavior-hold-tap"; + label = "kp_mo"; + #binding-cells = <2>; + flavor = "tap-preferred"; + tapping-term-ms = <200>; + quick-tap-ms = <200>; + require-prior-idle-ms = <140>; + bindings = <&mo>, <&kp>; + }; + kp_mt: behavior_kp_mt { + compatible = "zmk,behavior-hold-tap"; + label = "kp_mt"; + #binding-cells = <2>; + flavor = "tap-preferred"; + tapping-term-ms = <QUICK_TAP_MS>; + quick-tap-ms = <QUICK_TAP_MS>; + //require-prior-idle-ms = <100>; + bindings = <&kp>, <&kp>; + }; + }; +}; + + #include "homerow.h" #include "unicode.h" |