Ubuntu – Remapping keys on Apple keyboard

12.10applekeyboardsettingsxmodmap

I'm using the German Apple keyboard for both MacOS X and Ubuntu 12.10.

$ lsbusb
...    
Bus 002 Device 004: ID 05ac:0250 Apple, Inc. MP110Z/B

I've successfully remapped the exchanged < and ^ keys with these lines in .Xmodmap:

keycode 49 = less greater less greater bar brokenbar bar 
keycode 94 = dead_circumflex degree dead_circumflex degree U2032 U2033 U2032

Nevertheless only the Right ALT key is working. I want to exchange them or make them both work. Any ideas?

Best Answer

If you mean you have made a change in xmodmap and subsequently the change is only working for the right alt, this could be because you need to clear the current settings for the left alt modifier key before you make the change.

Something like this:

clear Mod1
add Mod1    = Alt_L Alt_R

documentation here: https://wiki.archlinux.org/index.php/Xmodmap

If you mean only one alt key is working initially, before anything is changed with xmodmap, maybe the only one alt key is set up as 'alt'. On english apple keyboards one alt is set up as a third and fourth level key, which allows you to choose alternate letter forms on the keyboard, eg 'ß' with the 's' key.

Related Question