From 4a0de5909f1f8bd76ea46a665a7911883f7cafe7 Mon Sep 17 00:00:00 2001 From: Imanol-Mikel Barba Sabariego Date: Fri, 27 Nov 2015 08:11:28 +0100 Subject: [PATCH] Added README --- README.md | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..7ca65f1 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +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" +``` \ No newline at end of file -- libgit2 0.22.2