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
I've used tofi for quite some time now and love it. However, I've just encountered an issue after experimenting with the xkb_optioncaps:swapescape. As the name suggests, this swaps the roles of the Escape and CapsLock keys and I have it configured in Sway with:
input * xkb_options "caps:swapescape"
After a day or so, I've found that the only problem I have with this is tofi. If I want to exit the dialog without making a selection, it requires that I still hit the Escape key, hitting CapsLock will not exit. However, Sway is still listening and so hit the Espace key also toggles the CapsLock state. I then have to press Escape again to restore the CapsLock state to what it was before running tofi.
Tofi does correctly interpret that I have the non-standard 'dvorak' layout set with:
input * xkb_variant "dvorak"
I suspect that this is related to issue #62, but I don't know enough about keycodes/keysyms to know for sure. I do see that I have to use 'Ctrl+J' as the optional escape in lieu of 'Ctrl+C'. That is, I need to use the physical 'C' key, which maps to 'J' for Dvorak. It does seem a bit odd to me that the keys are correctly interpretted as regular input (ie. at the prompt to narrow the list of available options in a menu context), but not for control characters (but, again, I don't know what I'm talking about).
As discussed in that other issue, allowing an option seems to possibly be the best option.
The text was updated successfully, but these errors were encountered:
Another search and I found mention of the Escape key in the keysym_to_key function. A quick blame later and I found the physical-bindings=false option. With that set CapsLock dismisses tofi as expected.
Turns out that this is also mention in #109, which was mentioned in 62, but I didn't bother looking because that issue was still marked as open, so I just assumed it would not have answers.
I've used tofi for quite some time now and love it. However, I've just encountered an issue after experimenting with the
xkb_option
caps:swapescape
. As the name suggests, this swaps the roles of the Escape and CapsLock keys and I have it configured in Sway with:After a day or so, I've found that the only problem I have with this is tofi. If I want to exit the dialog without making a selection, it requires that I still hit the Escape key, hitting CapsLock will not exit. However, Sway is still listening and so hit the Espace key also toggles the CapsLock state. I then have to press Escape again to restore the CapsLock state to what it was before running tofi.
Tofi does correctly interpret that I have the non-standard 'dvorak' layout set with:
I suspect that this is related to issue #62, but I don't know enough about keycodes/keysyms to know for sure. I do see that I have to use 'Ctrl+J' as the optional escape in lieu of 'Ctrl+C'. That is, I need to use the physical 'C' key, which maps to 'J' for Dvorak. It does seem a bit odd to me that the keys are correctly interpretted as regular input (ie. at the prompt to narrow the list of available options in a menu context), but not for control characters (but, again, I don't know what I'm talking about).
As discussed in that other issue, allowing an option seems to possibly be the best option.
The text was updated successfully, but these errors were encountered: