ACTION!="add|change", GOTO="xorg_evdev_end" SUBSYSTEM!="input", GOTO="xorg_evdev_end" KERNEL!="event*", GOTO="xorg_evdev_end" # By default, we use the -evdev driver for every input device; later rules can # then change the driver for specific input devices. ENV{x11_driver}="evdev" # import keyboard layout from /etc/default/console-setup; note that we need to # set this for all "key" input devices, not just ID_INPUT_KEYBOARD # otherwise, if you ask the X server what the layout is (such as libxklavier), it will pick a random # one ENV{ID_INPUT_KEY}=="?*", IMPORT{program}="/bin/sed -n '/^XKB/ { s/^XKBMODEL/xkb.model/; s/^XKBLAYOUT/xkb.layout/; s/^XKBVARIANT/xkb.variant/; s/^XKBOPTIONS/xkb.options/; p}' /etc/default/console-setup" LABEL="xorg_evdev_end"