From faaff4833af723afa61c786050745ea1c670b66d Mon Sep 17 00:00:00 2001 From: nikodem Date: Wed, 29 Nov 2023 23:42:09 +0100 Subject: [PATCH] come on --- config/cradio.keymap | 37 ++++++++++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/config/cradio.keymap b/config/cradio.keymap index 62edd7a..7b56fd7 100644 --- a/config/cradio.keymap +++ b/config/cradio.keymap @@ -2,14 +2,37 @@ #include #include -#define DVORAK 0 -#define QWERTY 5 -#define SYMBOLS 1 -#define SYMBOLS_ALT 2 -#define NAVIGATION 3 -#define NUMPAD 4 - / { + combos { + compatible = "zmk,combos"; + + switch_to_qwerty { + bindings = <&to 5>; + key-positions = <10 14>; + require-prior-idle-ms = <2000>; + layers = <0>; + }; + + switch_to_dvorak { + bindings = <&to 0>; + key-positions = <14 10>; + require-prior-idle-ms = <2000>; + layers = <5>; + }; + + to_navigation { + bindings = <&to 3>; + key-positions = <16 17>; + require-prior-idle-ms = <500>; + }; + + to_numpad { + bindings = <&to 4>; + key-positions = <17 18>; + require-prior-idle-ms = <500>; + }; + }; + keymap { compatible = "zmk,keymap";