6

udev rules and xinput

view full story
linux-howto

http://forums.fedoraforum.org – I have bluetooth mouse which I wish to set-up using udev rule. When the mouse is paired I wish some parameters to be changed by xinput, I build the appropriate udev rules file: Code: ACTION!="add", GOTO="logitech_rules_end" SUBSYSTEM!="input", GOTO="logitech_rules_end" LABEL="logitech_rules_start"   ATTR{uniq}=="00:07:xx:xx:xx:xx", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/me/.Xauthority", ENV{HOME}="/home/me",  RUN+="/home/me/.bin/logitech" LABEL="logitech_rules (HowTos)