diff options
author | jakobst1n <jakob.stendahl@outlook.com> | 2024-01-10 08:18:31 +0100 |
---|---|---|
committer | jakobst1n <jakob.stendahl@outlook.com> | 2024-01-10 08:18:31 +0100 |
commit | 20c10e8ed1d3710cb83367ca18202e7f160f2506 (patch) | |
tree | 99b6f2882572165ae55f7284e08aec82e4989476 /config/utils/common.h | |
parent | 741ee4dfaa7eea8961159ca40ac1d246ed4bb0b6 (diff) | |
download | zmk-config-20c10e8ed1d3710cb83367ca18202e7f160f2506.tar.gz zmk-config-20c10e8ed1d3710cb83367ca18202e7f160f2506.zip |
Improve tapping term and some thumb keys, move utils inside config
Diffstat (limited to 'config/utils/common.h')
-rw-r--r-- | config/utils/common.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/config/utils/common.h b/config/utils/common.h new file mode 100644 index 0000000..babff13 --- /dev/null +++ b/config/utils/common.h @@ -0,0 +1,30 @@ +#define ___ &trans +#define XXX &none + +#ifndef QUICK_TAP_MS + #define QUICK_TAP_MS 175 +#endif + +#define ZMK_HELPER_STRINGIFY(x) #x + +#define MO_TOG(layer) &mo_tog layer layer // Macro to apply momentary-layer-on-hold/toggle-layer-on-tap to a specific layer + +&sk { // sticky-key config + release-after-ms = <900>; // release after 0.6s + quick-release; // no double capitalization when rolling keys +}; + +&sl { // sticky-layer config + ignore-modifiers; // allow chording sticky mods & layers +}; + +< { // layer-tap config + flavor = "balanced"; + tapping-term-ms = <200>; + quick-tap-ms = <QUICK_TAP_MS>; +}; + + +#include "homerow.h" +#include "unicode.h" + |