From 87020e7ab2e2aa9c765a3cbafc9c0446f0ecf56f Mon Sep 17 00:00:00 2001 From: toerd Date: Thu, 22 Nov 2018 18:16:05 +0100 Subject: [PATCH] added udev rules for huion tablet and backlight --- etc/udev/rules.d/50-huion-tablet.rules | 1 + etc/udev/rules.d/90-backlight.rules | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 etc/udev/rules.d/50-huion-tablet.rules create mode 100644 etc/udev/rules.d/90-backlight.rules diff --git a/etc/udev/rules.d/50-huion-tablet.rules b/etc/udev/rules.d/50-huion-tablet.rules new file mode 100644 index 0000000..f85eaa7 --- /dev/null +++ b/etc/udev/rules.d/50-huion-tablet.rules @@ -0,0 +1 @@ +ACTION=="add",SUBSYSTEM=="usb",ATTRS{idVendor}=="256c",ATTRS{idProduct}=="006e",ENV{XAUTHORITY}="/home/toerd/.Xauthority",RUN+="/home/toerd/.dotfiles/huion/huion_udev.sh",MODE="0666",OWNER="toerd" \ No newline at end of file diff --git a/etc/udev/rules.d/90-backlight.rules b/etc/udev/rules.d/90-backlight.rules new file mode 100644 index 0000000..3d4588d --- /dev/null +++ b/etc/udev/rules.d/90-backlight.rules @@ -0,0 +1,3 @@ +SUBSYSTEM=="backlight", ACTION=="add", \ + RUN+="/bin/chgrp video %S%p/brightness", \ + RUN+="/bin/chmod g+w %S%p/brightness"