From c1fa15577a637e62114a7318eb75ea2a4666bdd7 Mon Sep 17 00:00:00 2001 From: Stas Prokofyev Date: Sat, 27 Jan 2024 12:07:59 +0300 Subject: [PATCH] Add language switch combos --- config/corne.keymap | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/config/corne.keymap b/config/corne.keymap index 9839d37..27a5633 100644 --- a/config/corne.keymap +++ b/config/corne.keymap @@ -99,6 +99,38 @@ <¯o_pause_for_release>; ) }; + + combos { + compatible = "zmk,combos"; + combo_rus { + timeout-ms = <50>; + key-positions = <5 6>; + layers = ; + bindings = <&to_russian>; + require-prior-idle-ms = <300>; + }; + combo_eng { + timeout-ms = <50>; + key-positions = <5 6>; + layers = ; + bindings = <&to_english>; + require-prior-idle-ms = <300>; + }; + combo_rus2 { + timeout-ms = <50>; + key-positions = <38 39>; + layers = ; + bindings = <&to_russian>; + require-prior-idle-ms = <300>; + }; + combo_eng2 { + timeout-ms = <50>; + key-positions = <38 39>; + layers = ; + bindings = <&to_english>; + require-prior-idle-ms = <300>; + }; + }; keymap { compatible = "zmk,keymap";