It’s a little tip showing how you can change your keyboard layout on X11 when you are not root and you cannot use the console (when you are able to use the console, you can use yourself X11 config file through the startx command).

Well, forget KDE, GNOME and modern X11 clients. Think you are using a simple client as Fluxbox and OpenBox…How do you can change your keyboard layout ?

It’s simple…use setxkbmap. In my case (I have a Sony Vaio with Spanish layout):

setxkbmap es

My two cents ;)