Super User is a question and answer site for computer enthusiasts and power users. 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

In an attempt to remap the right alt key to my left alt key I had run the following:

xmodmap -e 'keysym Alt_L=Alt_R'

Now I cannot revert it back to it's original state. How can I undo this blunder?

share|improve this question

Just log out and log in again. Alternatively I find that just unplugging my keyboard and plugging it back in resets the xmodmap i'm testing.

This works as long as you do not make any changes to your keymap that loads at boot.

To be on the save side, many people recommend that you make a backup configuration, like so:

 xmodmap -pke > ~/originalkeymap.xmod

You can then load back the original settings at any time:

xmodmap ~/originalkeymap.xmod
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .