Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

I've been trying to change the key mapping of my keyboard for certain keys. So far I've been successful to do it using xmodmap for a variety of keys. However, no matter what I do, I can't get the Alt_R (the right side Alt key) which has a key code of 108 to map to the Up key. Here's the command I'm using:

xmodmap -e "keycode 108 = Up"

Is there anything more that I need to do to get this working. Even after these changes, whenever I hit the Alt_R key, it ends up minimizing the current window.

I'm on Ubuntu 11.04

share|improve this question

using xmodmap like you did above worked for me. My assumption is that Alt_R may be assigned to the function of minimizing windows somewhere and that the system doesn't forward the keypress to the Terminal after this. Have you checked the system shortcuts or maybe in compiz? Not sure if there is a compiz-module to minimze windows via a shortcut though.

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.