From 3ba3c7f01e64edab7cf907cc5cb4dd1561e7118e Mon Sep 17 00:00:00 2001 From: Philip Wittamore Date: Sun, 11 May 2025 23:36:23 +0200 Subject: update --- 90-usb-notify.rules | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 90-usb-notify.rules (limited to '90-usb-notify.rules') diff --git a/90-usb-notify.rules b/90-usb-notify.rules new file mode 100644 index 0000000..679e004 --- /dev/null +++ b/90-usb-notify.rules @@ -0,0 +1,2 @@ +ACTION=="add", SUBSYSTEM=="usb", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/philip/.Xauthority" RUN+="/usr/bin/su philip -c '/home/philip/.local/bin/usb-device-add.sh $parent $devpath'" +ACTION=="remove", SUBSYSTEM=="usb", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/philip/.Xauthority" RUN+="/usr/bin/su philip -c '/home/philip/.local/bin/usb-device-remove.sh $parent $devpath'" -- cgit v1.2.3