My basic question is: How do I set an xinput property on another user's X server?
I have a udev rule that runs a custom script when a particular USB device (a mouse) connects. The script runs, and all it does is set an xinput property, thus:
Code:
xinput set-prop 10 'Device Accel Constant Deceleration' 1.8
The xinput command is correct, it works when I run it in a terminal under X. However, it does not work when run from udev, ie. outside of X. I've tried prepending the DISPLAY environment (and even XAUTHORITY). My Google-fu is stretched to the limit on this one.
(I know about setting the mouse sensitivity et al via various GUIs, but I swap the mouse between two computers often and the above configured property resets itself whenever the mouse is reconnected, hence the udev rule. xset doesn't work for this, xinput does.)
Thank you.