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 16 down vote accepted

Try:

setxkbmap us

(Replacing us with the keyboard layout you want). If using a variant (e.g. intl), try

setxkbmap -layout us -variant intl

Here's a list of keyboard layouts.

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
2  
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
1  
this answer gives temporarily solution, after reboot system, possible switches would be default session – solfish Jul 29 '17 at 9:01

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.