diff options
author | jakobst1n <jakob.stendahl@outlook.com> | 2023-11-29 21:40:14 +0100 |
---|---|---|
committer | jakobst1n <jakob.stendahl@outlook.com> | 2023-11-29 21:45:59 +0100 |
commit | 1ff6afebd619213e30acc3b167b44ddfe01fd6f1 (patch) | |
tree | e56cd7f743957cdff0dd6422f372fc53531e5ffa /config/common.h | |
parent | a553e2e81a673aeb10bd34d2aca06fd19714137d (diff) | |
download | zmk-config-1ff6afebd619213e30acc3b167b44ddfe01fd6f1.tar.gz zmk-config-1ff6afebd619213e30acc3b167b44ddfe01fd6f1.zip |
Move keymap from main zmk source to separate zmk-config repo.
Basically adhere to the "new way of doing things". Also, since I made
the keymap the first time, the ckp boards has made it into the core zmk
repo. So it is a hassle to compile without changing things in the source
now.
Diffstat (limited to 'config/common.h')
-rw-r--r-- | config/common.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/config/common.h b/config/common.h new file mode 100644 index 0000000..1292b8b --- /dev/null +++ b/config/common.h @@ -0,0 +1,29 @@ +#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 "../utils/unicode.h" + |