diff options
author | jack <[email protected]> | 2022-09-09 13:42:24 +0200 |
---|---|---|
committer | jack <[email protected]> | 2022-09-09 13:42:24 +0200 |
commit | 9d3f6ff98610176678f047c5164c655da98020df (patch) | |
tree | 51ccf33a0675505a1f524e8da2cc45bc635a8f78 | |
parent | c85f4fc096e530fddc94daa1fb6e2b9dc4fa5ad8 (diff) | |
download | zmk_build-9d3f6ff98610176678f047c5164c655da98020df.tar.gz zmk_build-9d3f6ff98610176678f047c5164c655da98020df.zip |
toggle qwerty/colemak
-rw-r--r-- | config/corne.keymap | 29 | ||||
-rw-r--r-- | config/util.h | 9 |
2 files changed, 21 insertions, 17 deletions
diff --git a/config/corne.keymap b/config/corne.keymap index 50e06c7..07737e5 100644 --- a/config/corne.keymap +++ b/config/corne.keymap @@ -74,18 +74,21 @@ combos { compatible = "zmk,combos"; - COMBO(ENTR, &kp RET, 4 7) - COMBO(QUOT, &kp SQT, 17 18) - COMBO(DQUO, &kp DQT, 27 32) - COMBO(LBRC, &kp LBRC, 3 4) - COMBO(RBKT, &kp LBKT, 7 8) - COMBO(BKSL, &kp BSLH, 3 8) - COMBO(COLN, &kp COLON, 5 6) - COMBO(PLUS, &kp PLUS, 14 21) - COMBO(QUES, &kp QMARK, 28 31) - COMBO(UNDS, &kp UNDER, 29 30) - COMBO(MINS, &kp MINUS, 2 9) - COMBO(EQAL, &kp EQUAL, 15 20) - COMBO(CAPW, &caps_word, 16 19) + // name output pos. layer + COMBO(entr, &kp RET, 4 7, 0 1) + COMBO(quot, &kp SQT, 17 18, 0 1) + COMBO(dquo, &kp DQT, 27 32, 0 1) + COMBO(lbrc, &kp LBRC, 3 4, 0 1) + COMBO(rbkt, &kp LBKT, 7 8, 0 1) + COMBO(bksl, &kp BSLH, 3 8, 0 1) + COMBO(coln, &kp COLON, 5 6, 0 1) + COMBO(plus, &kp PLUS, 14 21, 0 1) + COMBO(ques, &kp QMARK, 28 31, 0 1) + COMBO(unds, &kp UNDER, 29 30, 0 1) + COMBO(mins, &kp MINUS, 2 9, 0 1) + COMBO(eqal, &kp EQUAL, 15 20, 0 1) + COMBO(capw, &caps_word, 16 19, 0 1) + COMBO(clmk, &tog 1, 0 10, 0) + COMBO(qwrt, &tog 0, 0 10, 1) }; }; diff --git a/config/util.h b/config/util.h index f502c64..4b83b6f 100644 --- a/config/util.h +++ b/config/util.h @@ -1,11 +1,12 @@ // Copyright 2022 jack (@waffle87) // SPDX-License-Identifier: MIT -#define COMBO(name, keypress, keypos) \ +#define COMBO(name, keypress, keypos, layer) \ combo_##name { \ - timeout-ms = <50>; \ - bindings = <keypress>; \ - key-positions = <keypos>; \ + layers = <layer>; \ + timeout-ms = <50>; \ + bindings = <keypress>; \ + key-positions = <keypos>; \ }; #define HRML(k1,k2,k3,k4) &hm LALT k1 &hm LGUI k2 &hm LCTRL k3 &hm LSHFT k4 |