diff options
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" |