I want to remap capslock to ctrl, I found the answer online:
setxkbmap -option ctrl:nocaps
I tried in shell, it works. Now I want to persist it, I found some online post says that I need to create
~/.Xkbmap file in my home directory.
I followed that and put the above configuration in this file. But it doesn't work. After reboot, capslock is still capslock.
I dug a little deeper, in
/etc/X11/xinit/xinitrc.common, I find this line:
cat $xkbmap | xkbcomp - $DISPLAY (
$xkbmap is set to
Any idea why my Xkbmap not sourced? I'm on OpenSUSE 13.2, using LXDM.