1

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

Tim
  • 32,861
  • 27
  • 118
  • 178
Bug8
  • 11
  • Have a look at this old answer on Super User site. It works properly compared to Xmodmap's keycodes method. –  Sep 01 '15 at 17:01
  • Thanks for your reply but it doesnt seems very clean as it is not system wide and doesn't not work after reboot, as it seems that ubuntu doesnt load .Xmodmap. Plus if I follow the instruction and does xmodmap ~/.Xmodmap I get no less than 7306 errors. – Bug8 Sep 03 '15 at 19:59
  • I guess xmodmap became obsolete on recent Xubuntu releases (the earlier quoted link still worked for me on Xubuntu 14.04).. You may try this answer or another one that suggests xkb. –  Sep 07 '15 at 16:50

1 Answers1

2

Quick answer: instead of alt win:ctrl_alt_win, you should use ctrl: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.

sealday
  • 21