diff options
| author | 0scar <qgt268@alumni.ku.dk> | 2023-11-08 09:33:04 +0000 |
|---|---|---|
| committer | 0scar <qgt268@alumni.ku.dk> | 2023-11-08 09:33:04 +0000 |
| commit | 1b41b1dd7d071b7882e7edf7bad6590c6145f017 (patch) | |
| tree | c911c3f7f6eef2f48d50cb8ac7b1c3dcad6821f8 /config | |
| parent | 79efd6b52e942641cf96d420f1526f9a1c2a8cad (diff) | |
Increase combo timeout, add escape combo
Diffstat (limited to 'config')
| -rw-r--r-- | config/cradio.keymap | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/config/cradio.keymap b/config/cradio.keymap index 3f835c4..14067e9 100644 --- a/config/cradio.keymap +++ b/config/cradio.keymap @@ -40,20 +40,10 @@ // then-layer = <SETTINGS>; // }; // }; - combos { - compatible = "zmk,combos"; - combo_compose { - timeout-ms = <50>; - key-positions = <32 33>; - bindings = <&kp LALT>; - layers = <0 1>; - }; - }; - macros { - escape_to_layer: escape_to_layer { - label = "escape_to_layer"; + esc: esc { + label = "esc"; compatible = "zmk,behavior-macro"; #binding-cells = <0>; bindings @@ -63,6 +53,23 @@ }; }; + combos { + compatible = "zmk,combos"; + combo_compose { + timeout-ms = <150>; + key-positions = <31 32>; + bindings = <&kp LALT>; + layers = <0 1>; + }; + + combo_esc { + timeout-ms = <150>; + key-positions = <30 33>; + bindings = <&esc>; + layers = <0 1>; + }; + }; + keymap { compatible = "zmk,keymap"; default_layer { @@ -94,7 +101,7 @@ //│ ! │ # │ { │ } │ ~ │ │ & │ [ │ ] │ % │ * │ &kp EXCL &kp HASH &kp LBRC &kp RBRC &kp TILDE &kp AMPS &kp LBKT &kp RBKT &kp PRCNT &kp ASTRK //╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯ - &to BASE &escape_to_layer &kp BSPC &to NUM + &to BASE &esc &kp BSPC &to NUM // ╰──────────┴──────────╯ ╰──────────┴──────────╯ >; }; @@ -111,7 +118,7 @@ //│ │ │ │ │ │ │ │ │ │ │ │ &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans //╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯ - &to BASE &escape_to_layer &kp BSPC &to NAV + &to BASE &esc &kp BSPC &to NAV // ╰──────────┴──────────╯ ╰──────────┴──────────╯ >; }; @@ -128,7 +135,7 @@ //│ │ │ │ │ │ │ │ │ │ │ │ &kp F11 &kp F12 &kp F13 &kp F14 &kp F15 &trans &trans &trans &trans &trans //╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯ - &to BASE &escape_to_layer &kp BSPC &to SYM + &to BASE &esc &kp BSPC &to SYM // ╰──────────┴──────────╯ ╰──────────┴──────────╯ >; }; |
