aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2025-05-28 22:19:05 +0200
committerPhilip Wittamore <philip@wittamore.com>2025-05-28 22:19:05 +0200
commit1195e8c78149f7b18f8d1ad5fa05bb7cc0b18313 (patch)
tree69fce455cf17db8825a8e0b1153543bf47e3490e
parent83e464e2a2e2d8f75028d69fd8e31d8f4bd35b6e (diff)
downloadudev-rules-master.tar.gz
udev-rules-master.tar.bz2
udev-rules-master.zip
-rw-r--r--81-bluetooth-hci.rules1
-rw-r--r--90-usb-notify.rules4
2 files changed, 3 insertions, 2 deletions
diff --git a/81-bluetooth-hci.rules b/81-bluetooth-hci.rules
new file mode 100644
index 0000000..d1f7501
--- /dev/null
+++ b/81-bluetooth-hci.rules
@@ -0,0 +1 @@
+SUBSYSTEM=="usb", ATTRS{idVendor}=="8087", ATTRS{idProduct}=="07dc", ATTR{authorized}="0"
diff --git a/90-usb-notify.rules b/90-usb-notify.rules
index 679e004..b980e41 100644
--- a/90-usb-notify.rules
+++ b/90-usb-notify.rules
@@ -1,2 +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'"
+ACTION=="add", SUBSYSTEM=="usb", RUN+="/usr/bin/su philip -c '/home/philip/.local/bin/usb-device-add.sh $parent $devpath'"
+ACTION=="remove", SUBSYSTEM=="usb", RUN+="/usr/bin/su philip -c '/home/philip/.local/bin/usb-device-remove.sh $parent $devpath'"