You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'd like for Chrysalis to natively support configuring the rotary encoder to control the macOS application switcher and other switcher-like interfaces.
Describe the solution you'd like
By default, rotary encoders are configured by mapping turning them to a particular keyboard shortcut.
This kind of works for application switchers like the one you get when you hit Cmd-Tab on a macOS device, but the app switcher on macOS has an affordance where you can press and hold the Cmd key, then press Tab, and while holding down the Cmd key, you can keep the app switcher open while you repeatedly press Tab (or Shift-Tab to move your selection back to the left).
I'd love to see Chrysalis supporting doing this with a rotary encoder, so that I could start turning the encoder to bring up the switcher, keep turning the knob in either direction to make my selection, then once I stop turning the knob, the keyboard releases the Cmd key and I switch to the selected application.
Windows has a similar window switcher that uses alt-tab and I believe it works in a similar fashion.
I've done this in QMK for a macro pad, and the code in keymap.c looks something like this:
// Timer variable for the delay for holding the Cmd key when turning the rotary encoderstaticuint16_tcmd_timer;
boolencoder_update_user(uint8_tindex, boolclockwise) {
if (clockwise) {
register_code(KC_LCMD);
tap_code(KC_TAB);
cmd_timer=timer_read(); // extend the timer another 750ms
}
else {
register_code(KC_LCMD);
register_code(KC_LSFT);
tap_code(KC_TAB);
unregister_code(KC_LSFT);
cmd_timer=timer_read(); // extend the timer another 750ms
}
return false;
}
voidmatrix_scan_user(void) {
// check if 500ms have passed since the rotary encoder was last turnedif (timer_elapsed(cmd_timer) >750) {
unregister_code(KC_LCMD);
cmd_timer=0;
}
}
But in doing this, I basically need to jump down into building my own firmware, which I suspect I could do with the Keyboardio Preonic, but it would be really nice if support for this kind of function were built right into Chrysalis, with a couple different options (like supporting Alt-tab for Windows/Linux).
Describe alternatives you've considered
The workaround to this issue is to build firmware myself, but that's a huge lift for a single feature.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I'd like for Chrysalis to natively support configuring the rotary encoder to control the macOS application switcher and other switcher-like interfaces.
Describe the solution you'd like
By default, rotary encoders are configured by mapping turning them to a particular keyboard shortcut.
This kind of works for application switchers like the one you get when you hit Cmd-Tab on a macOS device, but the app switcher on macOS has an affordance where you can press and hold the Cmd key, then press Tab, and while holding down the Cmd key, you can keep the app switcher open while you repeatedly press Tab (or Shift-Tab to move your selection back to the left).
I'd love to see Chrysalis supporting doing this with a rotary encoder, so that I could start turning the encoder to bring up the switcher, keep turning the knob in either direction to make my selection, then once I stop turning the knob, the keyboard releases the Cmd key and I switch to the selected application.
Windows has a similar window switcher that uses alt-tab and I believe it works in a similar fashion.
I've done this in QMK for a macro pad, and the code in
keymap.c
looks something like this:But in doing this, I basically need to jump down into building my own firmware, which I suspect I could do with the Keyboardio Preonic, but it would be really nice if support for this kind of function were built right into Chrysalis, with a couple different options (like supporting Alt-tab for Windows/Linux).
Describe alternatives you've considered
The workaround to this issue is to build firmware myself, but that's a huge lift for a single feature.
The text was updated successfully, but these errors were encountered: