On Sun, 11 Jul 2010 19:19:25 +0200, Stéphane Guedon wrote:
> > How? I know how to use udev for device recognition, but how do you
> > tell it to use a particular keyboard layout?
>
> 19:18:09 steph...@luciole:/etc/udev/rules.d $ cat 61-x11-input.rules
> SUBSYSTEM!="input", GOTO="x11_input_end"
> ACTION!="add", GOTO="x11_input_end"
>
> KERNEL=="event*", ENV{x11_driver}="evdev"
> KERNEL=="event*", ENV{ID_INPUT_KEYBOARD}=="1
>
> ENV{ID_INPUT_KEY}=="?*", ENV{xkblayout}="fr"
>
> LABEL="x11_input_end"
> =======Interesting, but it seems more complex that a simple stanza in /etc/X11/xorg.conf.d. Using udev rules for something that will only be used by one application adds unnecessary complication, IMO. If only X will use the information, I'd prefer to put in in the X configuration directory. -- Neil Bothwick The world is a tragedy to those who feel, but a comedy to those who think.(Horace Walpole)
signature.asc
Description: PGP signature

