I often connect a USB keyboard to my laptop, and when I plug it in, the default repeat rate is not what I want. I tried changing it using a udev
script by adding a rule
`ACTION=="add", ATTRS{name}=="Dell Dell Multimedia Pro Keyboard", RUN+="set-keyboard.sh"`
with the set-keyboard.sh
script calling
xset -display :0 r rate 500 50; xset -display :0 b off
The problem is that this sets the repeat rate and beep of the laptop built-in keyboard, not the USB keyboard. (That is, if I type xset q
on the built-in keyboard, it shows the right settings, but if I type xset q
on the USB keyboard, it's still set to the wrong rate.)
Is there a way to let xset
know which keyboard to set, or some other way to go about this?