You are not logged in.

#1 2010-10-20 10:21:24

clovenhoof
Member
From: Bulgaria
Registered: 2010-09-16
Posts: 82

Keyboad switch between layouts in Xfce

Hi

I added new keyboard layout from GUI (Settings->Keyboard).
But how to switch between the layouts?

I tried this but it doesn't work:

nano /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,bg(phonetic)</merge>
      <merge key="input.xkb.variant" type="string"/>
<!--      <merge key="input.xkb.layout" type="string">bg</merge> -->
      <merge key="input.xkb.options" type="string">grp:ctrl_shift_toggle,grp_led:scroll</merge>
    </match>
  </device>
</deviceinfo>

I look for some suggestions about adding options in my xorg.conf file, but I don't have such file.

Offline

#2 2010-10-20 10:40:46

clovenhoof
Member
From: Bulgaria
Registered: 2010-09-16
Posts: 82

Re: Keyboad switch between layouts in Xfce

Should I need to generate xorg.conf with "X -configure" and placed it to "/etc/X11"?

Offline

#3 2010-10-20 22:32:06

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Keyboad switch between layouts in Xfce

To switch keymaps in XFCE I'm using a small script instead of xorg.conf.

Offline

#4 2010-10-21 02:02:52

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: Keyboad switch between layouts in Xfce

You can add a "Keyboard Layouts" item to the panel.

Offline

Board footer

Powered by FluxBB