You are not logged in.

#1 2010-03-08 15:52:49

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

LXDE: keyboard layout management

Hi,

I can't find any definitive how-tos on the subject. I followed some Google and Wiki suggestions, unsuccessfully:

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

/etc/xdg/lxsession/LXDE/autostart:

@xscreensaver -no-splash
@lxpanel --profile LXDE
@pcmanfm -d
@setxkbmap -model evdev -layout us,ru -variant,

I want Russian and US layouts, switch by CapsLock smile .

Keyboard Layout Switcher won't react and doesn't show any layout but US.

Any suggestions?

Last edited by Llama (2010-03-08 15:54:05)

Offline

#2 2010-03-08 18:13:09

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: LXDE: keyboard layout management

Change to

/etc/xdg/lxsession/LXDE/autostart:

@xscreensaver -no-splash
@lxpanel --profile LXDE
@pcmanfm -d
@setxkbmap -model evdev -layout us,ru -variant , -option -option grp:caps_toggle

seems to be adequate...

Offline

#3 2010-08-12 21:03:34

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: LXDE: keyboard layout management

Great stuff - I was farting around with /etc/rc.local, .X* et al, but this did the trick - thanks smile

Perhaps you would like to mark it as solved so as to help others?


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#4 2013-09-26 18:20:17

hajate
Member
Registered: 2013-09-24
Posts: 2

Re: LXDE: keyboard layout management

Hi all,

For me, this did not work. But following the instructions in the LXDE wiki did.

Just in case someone is in the same σιτυατιον.

: )

Offline

#5 2013-09-26 18:36:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: LXDE: keyboard layout management

This thread is 3 years old, no wonder it might not work.
Have you read the wiki: https://wiki.archlinux.org/index.php/LX … ard_layout ?

With regard to what the LXDE wiki suggests, putting X-specific stuff like setxkbmap in ~/.bashrc is a weird idea. ~/.xinitrc is a much better place for it.



Edit: In case anyone wanders what does 'σιτυατιον' mean - it means 'situation'.

Last edited by karol (2013-09-26 18:39:23)

Offline

#6 2013-09-26 18:58:36

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: LXDE: keyboard layout management

Welcome to the forums hajate. Please take a look at the Forum Etiquette, particularly the section on old threads / necro-bumping. Thanks.
Closing.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB