diff --git a/root/etc/udev/rules.d/98-thunderbolt-auto-allow.rules b/root/etc/udev/rules.d/98-thunderbolt-auto-allow.rules new file mode 100644 index 0000000..f0c2e21 --- /dev/null +++ b/root/etc/udev/rules.d/98-thunderbolt-auto-allow.rules @@ -0,0 +1 @@ +ACTION=="add", SUBSYSTEM=="thunderbolt", ATTR{authorized}=="0", ATTR{authorized}="1" diff --git a/root/etc/udev/rules.d/99-thunderbolt-autorandr.rules b/root/etc/udev/rules.d/99-thunderbolt-autorandr.rules new file mode 100644 index 0000000..2fe4f35 --- /dev/null +++ b/root/etc/udev/rules.d/99-thunderbolt-autorandr.rules @@ -0,0 +1,2 @@ +ACTION=="add", SUBSYSTEM=="thunderbolt", ATTR{authorized}="1", RUN+="/usr/bin/autorandr --batch -c" +ACTION=="remove", SUBSYSTEM=="thunderbolt", ATTR{authorized}="1", RUN+="/usr/bin/autorandr --batch -c"