How do I reset my keyboard layout?

Solution 1:

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.

Solution 2:

Check current layout and options:

setxkbmap -print -verbose 10

Reset layout to US and reset options:

setxkbmap -layout us -option

(Without the empty -option parameter, no options would be reset.)

Use the first command to check the result.