-
I find Achordion immensely useful, loved it from the moment I tried it, many thanks to the author! I use two different layouts, Colemak-DH for my base layer, and Qwerty for my Cyrillic layer (to ease the pain of mapping in windows on amd/arm). But while control/alt/meta (not shift obviously) are held, I want the mapping to switch to Colemak (since it's where my fingers expect the letters to be). I wrote some code using custom keycodes, variables, timers, etc, and it brings a lot of unnecessary complexity. But then I thought - Achordion is already dealing with all that! Maybe there's a way to have a ride-along? Any ideas/suggestions are appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hey, I've got the same setup regarding the layers, however, I switch between the languages with a custom key code. bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (record->event.pressed) {
...
if (!process_achordion(keycode, record)) {
return false;
}
...
switch (keycode) {
...
case TG_LANG:
if (record->event.pressed) {
if (!IS_LAYER_ON(LR_RUS)) {
tap_code16(LGUI(KC_SPACE));
layer_on(LR_RUS);
} else {
tap_code16(LGUI(KC_SPACE));
layer_off(LR_RUS);
}
}
return false;
...
}
...
}
...
} After |
Beta Was this translation helpful? Give feedback.
-
For now, I settled on this quick hack. https://github.com/bogorad/home-automation/blob/main/manna-harbour_miryoku.c |
Beta Was this translation helpful? Give feedback.
For now, I settled on this quick hack.
https://github.com/bogorad/home-automation/blob/main/manna-harbour_miryoku.c