The simplest way to add keyboard layout in xfce is to edit /etc/X11/xorg.conf – I didn’t manage to accomplish the task via settings manager > keyboard > layouts . Just add the following section (or make the existing one read like this):
Section «InputDevice»
Identifier «Keyboard0″
Driver «kbd»
Option «XkbModel» «pc105″
Option «XkbLayout» «us,ru»
Option «XkbOptions» «grp:switch,grp:alt_shift_toggle,grp_led:scroll»
EndSection
Obviously, I added russian layout, so replace ‘ru’ with whatever layout you whant. The next option sets the shortcut to switch between the layouts. Last, add layout switcher to a panel to monitor the active layout of window in focus.



23 Ноябрь, 2008 в 10:57 дп |
Once you add these changes to your xorg.conf file, you’ll have it working exactly the same in all desktop/window managers – gnome, kde, afterstep, etc.
23 Ноябрь, 2008 в 11:33 дп |
Agree. The reasons for mentioning XFCE are these:
1. in KDE / Gnome I’ve never actually had problem with adding / switching keyboard layouts via GUI
2. here (probably outdated subject, I didn’t check anyway):
http://osdir.com/ml/kde.internationalization.hebrew/2006-01/msg00005.html
somebody reports that some problem were discovered in KDE