I wanted to remap CapsLock to work as escape, and I did it. What I did was:
setxkbmap -option caps:escape
But that method has a problem. Whenever I press CapsLock, on top it of working as escape, it also locks capitals. My question is, is there any way in which I can make CapsLock not lock capitals, but keep its new function? (and please, if possible, in case your method makes the LED light up, help me turn it off). I want this to work with vim, but I think it would be more appropriate to remap it at an OS level.
As the saying goes, "I use Arch btw"
Thank you very much.
Edit: Finally solved it!
setxkbmap -option caps:swapescape
setxkbmap -query
tell us? – Quasímodo May 31 '20 at 17:16rules: evdev | model: pc105 | layout: latam,us,us | variant: ,, | options: caps:escape,grp:caps_toggle,grp_led:scroll |
– Bix Moo May 31 '20 at 18:04caps:escape
andgrp:caps_toggle
"compete" for the CapsLock key and result in that behavior. See issue grp:caps_toggle doesn't work with ctrl:swapcaps in Github. – Quasímodo May 31 '20 at 18:19setxkbmap -option grp:caps_toggle
was issued? That is what the-query
says. – Quasímodo May 31 '20 at 19:29