You are not logged in.

#1 2008-12-01 06:56:14

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

[Solved] How to switch between two keyboard layouts ?

I added the other keymap to the hal policy file . setxkbmap <layout> works . But I can't switch between the 2 layouts As I used to before the X upgrade .
I have in xorg.conf :

"XKbOptions" "grp:alt_shift_toggle"

That's the line that did the trick in the old days .
How can I get the old behaviour back ? (I don't need to disable the whole hotplugging thing for this , do I ?)

Last edited by Nezmer (2008-12-01 16:38:47)


English is not my native language .

Offline

#2 2008-12-01 07:43:48

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: [Solved] How to switch between two keyboard layouts ?

Here's a working /etc/hal/fdi/policy/10-keymap.fdi you can copy and change to your liking:

<?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,ca</merge>
      <merge key="input.xkb.options" type="string">grp:menu_toggle</merge>
    </match>
  </device>
</deviceinfo>

Offline

#3 2008-12-01 10:35:28

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: [Solved] How to switch between two keyboard layouts ?

Thank you very much . that worked after restarting X .

Maybe you should add this to the wiki If It's not there yet and replace the old instructions .


English is not my native language .

Offline

#4 2008-12-01 18:09:29

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: [Solved] How to switch between two keyboard layouts ?

Nezmer wrote:

Maybe you should add this to the wiki If It's not there yet

Done smile

Offline

Board footer

Powered by FluxBB