I'm trying to remap CapsLock to Ctrl, but seems unable to remap in all ways.
Also, the key has a strange behavior.
First, I use japanese keyboard. Therefore,
XKBLAYOUT = "jp" in
And I use Awesome as an Window Manager. While I login using gnome, CapsLock works as CapsLock. However, When I login using AwesomeWM, CapsLock do nothing.
I want to use CapsLock as Ctrl on Awesome. I have tried followings:
setxkbmap -option ctrl:nocaps.
- add a
However, all of these are never able CapsLock to work as Ctrl, although
xmodmap -pke returns that CapsLock(keycode 66) is mapped to Ctrl-L.
Also, only when I map CapsLock to CapsLock like that I write
keycode 66 = Caps_Lock in
.xmodmap, the key works. If I tried to map to other keys than CapsLock like Esc, the key don't do its work as it didn't in the case of Ctrl.
Does anyone knows what happens?