Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On Ubuntu 10.10, is there any way to change the keyboard layout to where the Command key acts like the Control key?

And, if hardware makes any difference, I am on a 13" Aluminum Late '08 MacBook.

share|improve this question
Ditto for 11.10 – Victor S Feb 17 '12 at 8:25

Keep in mind that the Command key is the same as the Windows key (or Super) in Bootcamp/whatever.

  1. Back up. Santa will thank you.
  2. Read this guide and this guide if you want to get a basic idea of what I'm doing in step 3.
  3. Add these two commands to your startup (System->Administration->Startup Applications):

    xmodmap -e 'keycode 133=Control_L'
    xmodmap -e 'keycode 37=Super_L'

    That'll take care of the left side, swapping the Command and Control key functions.

  4. Add these two commands to your startup too for the right command and control.

    xmodmap -e 'keycode 134=Control_R'
    xmodmap -e 'keycode 109=Super_R'

It'll only work as soon as you log in though.

share|improve this answer
Thanks for the answer! I'll try this as soon as I get the chance! (Computer is getting fixed x_x) – Wuffers Dec 14 '10 at 13:25
Hi, I tried this and it didn't work. The keys stay the same. – Wuffers Dec 14 '10 at 22:03
If you open a terminal and run any pair of commands does it work? – digitxp Dec 14 '10 at 22:38
@digitxp: I tried that and that doesn't work, either. – Wuffers Dec 17 '10 at 22:27
Hm...that's tough. Does the Command key act like a Super key (quick way to check is to hit Cmd+E and again. If it works it'll show the multiple desktops view and return to normal view) – digitxp Dec 17 '10 at 23:05

You can also set this in the GUI:

Go into System -> Preferences -> Keyboard

Click on the "Layouts" tab and then click the "Layout Options" button.

Click on "Alt/Win key behavior"

Select "Control is mapped to Win keys (and the usual ctrl key).


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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