Search Ubuntu life...

Custom Search

Thursday, April 1, 2010

Keyboard layout configuration for Lubuntu 10.04 Beta1

For a (permanent) usa/greek keyboard configuration, using alt+shift for language switching:
  • sudo vi /usr/lib/X11/xorg.conf.d/05-evdev.conf
  • and modify
Section "InputClass"
Identifier "evdev keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Section "InputClass"
Identifier "evdev keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbLayout" "us,gr"
Option "XKbOptions" "grp:alt_shift_toggle"
Change gr above to your language symbols, to get the proper keyboard layout.


Peter Jaric said...

Thanks! I installed the beta of Lubuntu Lucid Lynx and didn't get the Swedish layout I had selected in the install process (due to this bug: and I found the solution here.

Anonymous said...

Thanks a lot! I was about to format the entire system until i saw your post. It also works with Beta 2.

foo_gr said...

I think that it will work for the final release also, since this workaround has to do with X11. We have to "push" for an official improvement through LXDE though.

Jorge Albán said...

Thanks a lot! Great X11 hack that allows people to switch between keyboard languages without constantly pulling out a Terminal and coding "setxkbmap"... Great !

coolthing76 said...

Thanx man. It worked for me in Kubuntu with Arabic language. Exactly what I was looking for.

nasmork said...

GREAT! Thanks! Worked for me too (Ubuntu 10.04 LTS).

Will it work to switch between 3 languages?

foo_gr said...

I have not tested it for 3 languages, so I don't know if it works.

ER said...

Thanx, after restarting X works like charm! At least!

If anyone wants set variant add (like in xorg.conf):

"XkbVariant" ",qwerty"
# i am setting qwerty variant for second layout

ER said...

Option "XkbVariant" ",qwerty"

of course ... ;-)

Panos said...

Does this apply also to Lubuntu 10.10? I've search through the file manager for /usr/lib/X11/xorg.conf.d/05-evdev.conf to no avail. There is no file "xorg.conf.d" into X11. Or maybe am I doing something wrong being a newbie?
I can write Greek only when opening a terminal and typing sudo setxkbmap -option grp:shift_alt_toggle us,gr
but this is not permanent.

jastonas said...

I would also like to know how to do this in Lubuntu 11.10.
I guess the only thing I need to change is the file!

Anonymous said...

Old post but still works with 11.10 beta 2

Rafael said...

Still works with Lubuntu 12.10
(though now the file is called 10-evdev.conf)