ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Serg Borovikov <sergey.borovikov@top-sportbets.com>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Хочется очень странного (Keyboard)
Date: Wed, 18 Nov 2009 12:53:27 +0100
Message-ID: <200911181253.27969.sergey.borovikov@top-sportbets.com> (raw)
In-Reply-To: <200911111112.08088.sergey.borovikov@top-sportbets.com>

[-- Attachment #1: Type: Text/Plain, Size: 2450 bytes --]

В сообщении от Среда 11 ноября 2009 11:12:07 автор Serg Borovikov написал:
> Привет всем!
> Имеется: Последний p5, комп с 2-мя клавиатурами (1: рус&&англ 2: немецкая&&мультимедиаКнопки)
> Хочется: Чтобы для каждой клавиатуры была собственная текущая раскладка. Т.е. например, в одно и то-же поле набирая на одной клавиатуре печатались например русские буквы, на другой немецкие без дополнительных переключений.
> В идеале - чтобы для каждой клавиатуры можно было переключать layout отдельно. Ну... идея думаю ясна.
> 
> Какие будут идеи? В какую сторону копать? ;)
> 
Вобщем остановился пока на таком:
$ cat /etc/hal/fdi/policy/60-x11-dual-keyboard
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>

    <match key="info.capabilities" contains="input.keys">
      <merge key="input.x11_driver" type="string">evdev</merge>
      <merge key="input.x11_options.XkbOptions" type="string">grp:caps_toggle</merge>

      <match key="input.device" contains="/dev/input/event1">
        <merge key="input.x11_options.XkbLayout" type="string">ru,us</merge>
      </match>
      <match key="input.device" contains="/dev/input/event6">
        <merge key="input.x11_options.XkbLayout" type="string">us,de</merge>
      </match>
    </match>

  </device>
</deviceinfo>

Дополнительно пришлось почистить /etc/X11/xinit/Xkbmap от раскладок, выкосить клавиатуры из xorg.conf, и отрубить КДЕшный менеджер раскладок.

Так и не удалось заставить раскладки переключать отдельно для каждой клавиатуры. =(
Ещё.. кто подскажет как можно по другому идентифицировать клавиатуры (т.е. что написать вместо contains="/dev/input/event1")?
-- 
Serg Borovikov

Top Sportwetten GesmbH
Hietzinger Kai 137a
A-1130 Wien

email: serg.borovikov@top-sportbets.com
www.ambassador-bets.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 316 bytes --]

      parent reply	other threads:[~2009-11-18 11:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-11 10:12 Serg Borovikov
2009-11-11 10:56 ` Paul Wolneykien
2009-11-11 13:23   ` Serg Borovikov
2009-11-12  6:34 ` Vladimir V Kutyavin
2009-11-12 10:49   ` Serg Borovikov
2009-11-18 11:53 ` Serg Borovikov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200911181253.27969.sergey.borovikov@top-sportbets.com \
    --to=sergey.borovikov@top-sportbets.com \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git