Under X, I can make Caps Lock behave as Esc when pressed briefly, but as Ctrl when held down with:

setxkbmap -option 'caps:ctrl_modifier'
xcape -e 'Caps_Lock=Escape' -t 100

How can I replicate this behavior under Sway / Wayland?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.