Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

2 Answers 2

up vote 7 down vote accepted

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

share|improve this answer
1  
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: pastebin.com/v2vCPHjs 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

 
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.