Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

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.