xinput to change the settings of my USB mouse:
xinput set-ptr-feedback 'USB Optical Mouse' 4 1 1
How can I make these settings persistent after unplugging the mouse or rebooting?
First we need the mouse vendor and product strings. You can find these through
The In the part
So then we add a rule to udev. udev rules are found in
Whichever you do you want to add a rule like this. Notice I use the IDs from earlier to make this work.
udev should pick that up immediately.
Note udev can do pretty clever things on its own when it comes to configuring devices. You might not need
I can think of no other solution than starting a little daemon that
Save the code above in a