You are not logged in.
Pages: 1
Hi everybody i'm a newbie and I need to type in English and Persian. I've just installed arch. I want to switch layouts by pressing Alt+Shift. I have no xorg.conf, my X server was configured by hal. Thanks for your help.
Last edited by mahdif62 (2009-04-17 11:51:32)
Offline
depends on your WM/DE...?
Offline
Jwm
Offline
See the wiki: http://wiki.archlinux.org/index.php/Xor … figuration
I don't know the keymap name for Persian, but if it's, say, "pe", you'd use
<merge key="input.xkb.layout" type="string">pe,en</merge>
First one in the list will be used on boot.
A list of possible values for grp:TOGGLE can be found in /usr/share/X11/xkb/rules/xorg.lst Stuff starting with grp: can be used here. For alt+shift, you'd use
<merge key="input.xkb.options" type="string">grp:alt_shift_toggle</merge>
Linux user #476135 || Dotfiles hosted by GitHub
Offline
After reading the wiki , you should end up with this :
$ cat /etc/hal/fdi/policy/10-keymap.fdi
<?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>
<!-- If we're using Linux, we use evdev by default (falling back to
keyboard otherwise). -->
<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,pe</merge>
<merge key="input.xkb.options" type="string">grp:alt_shift_toggle</merge>
</match>
</device>
</deviceinfo>
Change 'pe' with what's actually used for persian .
English is not my native language .
Offline
Pages: 1