0

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

  • Have a look at this old answer on Super User site. It works properly compared to Xmodmap's keycodes method. – clearkimura Sep 1 '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 3 '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. – clearkimura Sep 7 '15 at 16:50
0

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.