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

How can I reset my keyboard layout after modifying it with xkbcomp?
Is there a way to do this without restarting X?

share|improve this question
up vote 10 down vote accepted

Try setxkbmap us. (Replacing us with the keyboard layout you want.) A list of keyboard layouts can be found here:

share|improve this answer
Where can I get a list of the names of the keyboard layouts? For example, how do I find out what to use for USA International? – DLH Jul 29 '10 at 14:55
I created this list from the contents of /usr/share/X11/xkb/rules/xorg.lst: For USA International, do setxkbmap us -variant intl. (Only one dash!) – snostorm Jul 29 '10 at 15:02
Could you please add the pastebin link or a file:///usr/share/X11/xkb/rules/xorg.lst link to your answer to improve readability? – ParanoiaPuppy Jul 29 '10 at 15:08
Awesome! Thanks! – DLH Jul 29 '10 at 15:11

Use setxkbmap -layout us. It looks to completely reset the changes

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.