You are not logged in.
Pages: 1
okay,the deal is that i want to have two keyboard layouts on LXDE
i can do this with the following command :
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,ar
but the problem is that i have to type this every time i log in
i tried modifying the keyboard section of xorg.conf,but no use
can somebody help me with that?
Offline
You are probably using hal to configure your keyboard. Therefore, X ignores keyboard entries in xorg.conf.
To get the keyboard layout and options you want, create /etc/hal/fdi/policy/10-keymap.fdi with the following content:
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keymap">
<append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
</match>
<match key="info.capabilities" contains="input.keys">
<merge key="input.xkb.rules" type="string">base</merge>
<merge key="input.xkb.model" type="string">keyboard</merge>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
string="Linux">
<merge key="input.xkb.model" type="string">evdev</merge>
</match>
<merge key="input.xkb.layout" type="string">us,ar</merge>
<merge key="input.xkb.options" type="string">grp:switch,grp:alt_shift_toggle,grp_led:scroll</merge>
<merge key="input.xkb.variant" type="string" />
</match>
</device>
</deviceinfo>
Restart hal (also possibly X) and you should be good to go!
HTH
Offline
i did what you said, restarted the system and all worked well
thanks a lot
Offline
Or you could have put that command in your .xinitrc (if that is your preferred way of launching X).
I hate all that HAL XML crap, you should too. It's ugly and unintuitive. xorg.conf options look much cleaner
Offline
Pages: 1