On my laptop, I tweak some keybindings and keyboard preferences with
xset. When I plug an external USB keyboard, the
configuration for that new keyboard is the default, i.e., without my tweaks.
xset again, then these preferences are applied to the
newly plugged keyboard too, but on pluging/unpluging, they are again reseted
to the default. Note that the pluging/unpluging never affects the
configuration of the laptop keyboard, which stay tuned during the whole
Question: How can I have one xmodmap and xset preference set, which applies to any keyboard (plugged now and in the future).
Configuration: Arch Linux on 3.1.1 kernel, Xorg 1.11.2 with no homemade configuration, window manager: awesome 3.4.11, no kde or gnome stuff