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.

link|improve this question

Ditto for 11.10 – Victor S Feb 17 at 8:25
feedback

1 Answer

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.

link|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
1  
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
show 2 more comments
feedback

Your Answer

 
or
required, but never shown

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