Lubuntu 12.04 – Change Default Keyboard Layout After Installation

defaultkeyboard-layoutlanguagelubuntu

I have Lubuntu 12.04

I accidentally set the keyboard to the wrong language when I was installing the system, and now I have to change that keyboard setting every time i start the computer.

How do I change the default keyboard language in Lubuntu 12.04?

Best Answer

To make a permanent change of the language of the keyboard, write this in the terminal:

 echo '@setxkbmap -option grp:alt_shift_toggle "es, us"' | sudo tee -a /etc/xdg/lxsession/Lubuntu/autostart

This sets the keyboard language to Spanish. This works for Lubuntu 12.04 too.

To just change the keyboard layout for the session, write this in the terminal (this example is for the english language):

setxkbmap -layout us
Related Question