I have found many answers to this question, but none worked for me.
I'm using xubuntu 15.04.
I'm trying to swap the ctrl and alt keys.
I have tried that :
How to swap Command and Control keys with xkb step by step?
Nothing seems to change.
That, using altwin:ctrl_alt_win :
How do you remap a key to the Caps Lock key in Xubuntu?
It works, but only temporary…
So i tried to add alt win:ctrl_alt_win to /etc/default/keyboard and then dpkg-reconfigure keyboard-configuration but nothing changes.
Is there a simple and clean way to do that ?
Thanks
Best Answer
Quick answer: instead of
alt win:ctrl_alt_win
, you should usectrl:swap_lalt_lctl
to swap alt and ctrl keys.Reference: type
man keyboard
, deep in, and you will find file/usr/share/doc/keyboard-configuration/xorg.lst
contains options you need.