Page 1 of 1
How to add layouts to keyboard preferences in LXDE?
Posted: Wed Aug 19, 2009 4:44 am
by Ex_Soft
FC11. How to add layouts to keyboard preferences in LXDE similar as Gnome System->Preferences->Keyboard->Layout?
There isn't any applet such as Gnome's Keyboard Indicator in LXDE, is there?
Re: How to add layouts to keyboard preferences in LXDE?
Posted: Wed Aug 19, 2009 8:33 pm
by archiebald
As far as I know, there is no such utility currently available, you need to manually edit your keyboard layout. But there is keyboard indicator for LXPanel. Right click on LXPanel->Add/Remove Panel Items->Panel Applets->Add->Keyboard Layout Switcher. It is somewhat similar to Xfce's panel indicator and little to KDE's kicker, but it's not SVG format icon.
Re: How to add layouts to keyboard preferences in LXDE?
Posted: Thu Aug 20, 2009 4:23 am
by Ex_Soft
archiebald wrote:you need to manually edit your keyboard layout

How may I do this?
archiebald wrote:LXPanel->Add/Remove Panel Items->Panel Applets->Add->Keyboard Layout Switcher
There is no
Keyboard Layout Switcher there. I found
Keyboard Led in available plugins only.
Re: How to add layouts to keyboard preferences in LXDE?
Posted: Thu Aug 20, 2009 8:16 am
by archiebald
Try this, but it's only temporary, until next reboot:
Code: Select all
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,ar
This is from ArchWiki, about
Xorg input hotplugging and it's permanent solution, if you boot your desktop from login managers:
Copy the file (10-keymap.fdi):
Code: Select all
/usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi
to
and edit this copy there as follows (substitute NEW_LAYOUT with your layout, for instance fr):
Code: Select all
<merge key="input.xkb.layout" type="string">NEW_LAYOUT</merge>
Re: How to add layouts to keyboard preferences in LXDE?
Posted: Sun Nov 22, 2009 12:52 am
by mamphp
itry this ways doesn't work under Debian testing and Sidux!

Re: How to add layouts to keyboard preferences in LXDE?
Posted: Wed Jan 20, 2010 12:31 pm
by bearny
The way with 10-keymap.fdi not working on Fedora12 LXDE distribution.
I've found 3 ways for this distribution:
1)include this line
Code: Select all
setxkbmap -option grp:ctrl_shift_toggle,grp_led:scroll us,ru
into
/etc/X11/xinit/xinitrc script.
(not recommended)
2)create for user, which need keyboard layouts switching, file
~/.Xkbmap with line
Code: Select all
-option grp:ctrl_shift_toggle,grp_led:scroll us,ru
3)create for all users file
/etc/X11/Xkbmap with line from way 2):
Code: Select all
-option grp:ctrl_shift_toggle,grp_led:scroll us,ru
PS. In ways 2) and 3)
/etc/X11/xinit/xinitrc-common script uses settings from
~/.Xkbmap or
/etc/X11/Xkbmap and inserts lines from those files into script's body and runs command
setxkbmap
PS.PS. sorry for my english