From 20c10e8ed1d3710cb83367ca18202e7f160f2506 Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Wed, 10 Jan 2024 08:18:31 +0100 Subject: Improve tapping term and some thumb keys, move utils inside config --- config/utils/common.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 config/utils/common.h (limited to 'config/utils/common.h') 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 = ; +}; + + +#include "homerow.h" +#include "unicode.h" + -- cgit v1.2.3