Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I use a Logitech Mac-layout keyboard. I'd like my Option(alt) key to be my super key, left control to be meta, and cmd to be Control.

How do I go about doing this? I've fiddled around with the keyboard settings and couldn't do much to get the result I wanted.

I've made a .Xmodmap file, and this is what's in it:

clear control
clear mod4

keycode 105 =
keycode 206 =

keycode 133 = Control_L NoSymbol Control_L
keycode 134 = Control_R NoSymbol Control_R
keycode 37 = Super_L NoSymbol Super_L

add control = Control_L
add control = Control_R
add mod4 = Super_L

But this doesn't quite do what I'm looking for. It's close, but I need to switch the alt and ctrl key.

Edit:

Ah, I figured it out!

clear control
clear mod4
clear mod1

keycode 105 =
keycode 206 =

 keycode 133 = Control_L NoSymbol Control_L
 keycode 134 = Control_R NoSymbol Control_R
 keycode 37 = Alt_L Meta_L
 keycode 64 = Super_L NoSymbol Super_L


add control = Control_L
add control = Control_R
add mod4 = Super_L
add mod1 = Alt_L Meta_L
share|improve this question
    
Does This help? –  Mitch Sep 5 '13 at 5:55
    
It would have if I didn't figure out the proper .Xmodmap settings. I seem to have run into another annoyance however -- I have to manually run xmodmap ~/.Xmodmap every time I boot up. I can't figure a way to have it automatically load on startup -- apparently beyond 12.04 it's not loaded on startup automatically anymore. –  user130173 Sep 6 '13 at 0:34
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.