Name Last Update
.idea Loading commit data...
CMakeModules Loading commit data...
CMakeLists.txt Loading commit data...
LICENSE.TXT Loading commit data...
README.md Loading commit data...
main.cpp Loading commit data...

README.md

To automatically run the program on device plug in or plug out events, add this to udev rules:

ACTION=="add", ATTRS{bInterfaceClass}=="03", ENV{DISPLAY}=":0.0" RUN+="/bin/su - imanol -c /usr/local/bin/touchpad_disabler"
ACTION=="remove", ENV{DISPLAY}=":0.0" RUN+="/bin/su - imanol -c /usr/local/bin/touchpad_disabler"