I'm on a Dell Mini 910 with English keyboard and Ubuntu 11.10 also in English, and I want to keep it this way. But most of my typing is in Spanish so I need the AltGr key to get Spanish characters without switching my keyboard layout.

How can I map the Menu Key to AltGr?


1 Answer 1


I assume this is to be done in X.

It can be done with 'xmodmap'.

xmodmap -e "keysym Menu = ISO_Level3_Shift"

Put the following in the the file '.Xmodmap' in your home directory to make it load automatically when logging in.

keysym Menu = ISO_Level3_Shift
  • You point me into the right direction. This what works for me:clear mod3 keysym Menu = Mode_switch add mod3 = Mode_switch Oct 30, 2011 at 23:39

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.