Hey,
thanks for xcape. It makes life in Vim a lot more comfortable. :slightly_smiling_face:
I use xcape for generating escape when capslock is released and setxkbmap for maping capslock to ctrl when pressed with another key:
# Use capslock as ctrl
setxkbmap -option 'caps:ctrl_modifier'
# But capslock alone acts as escape
xcape -e 'Caps_Lock=Escape'
That works. However, I recognized that xcape generates multiple escape keystrokes when capslock is released. You can test this with the following small Python script:
Hey, thanks for
xcape
. It makes life in Vim a lot more comfortable. :slightly_smiling_face: I usexcape
for generating escape when capslock is released andsetxkbmap
for maping capslock to ctrl when pressed with another key:That works. However, I recognized that
xcape
generates multiple escape keystrokes when capslock is released. You can test this with the following small Python script:Pressing escape prints
b'\x1b'
. Pressing capslock generates (for me)b'\x1b\x1b\x1b\x1b\x1b\x1b\x1b\x1b\x1b\x1b\x1b'
. Any idea why this happens?