summaryrefslogtreecommitdiff
path: root/.local/hosts/swift/etc/udev/rules.d/95-hdmi-plug.rules
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-03-16 14:50:07 +0100
committerMarc Vertes <mvertes@free.fr>2025-03-16 14:50:07 +0100
commit95bb223a7763f5c7cee3a09c121479081c35a713 (patch)
tree9f7a76f23f0cfcf1fe622b68585472ce876a5eb9 /.local/hosts/swift/etc/udev/rules.d/95-hdmi-plug.rules
parentf038b48de460a42ad46a5b15985d1ebf344ee661 (diff)
update
Diffstat (limited to '.local/hosts/swift/etc/udev/rules.d/95-hdmi-plug.rules')
-rw-r--r--.local/hosts/swift/etc/udev/rules.d/95-hdmi-plug.rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/.local/hosts/swift/etc/udev/rules.d/95-hdmi-plug.rules b/.local/hosts/swift/etc/udev/rules.d/95-hdmi-plug.rules
new file mode 100644
index 0000000..465eada
--- /dev/null
+++ b/.local/hosts/swift/etc/udev/rules.d/95-hdmi-plug.rules
@@ -0,0 +1,5 @@
+ACTION=="change", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/marc/.Xauthority", RUN+="/home/marc/bin/hdmi"
+
+ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="25a4", ATTRS{idProduct}=="9311", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/marc/.Xauthority", RUN+="/home/marc/bin/hdmi"
+
+ACTION=="remove", SUBSYSTEMS=="usb", ATTRS{idVendor}=="25a4", ATTRS{idProduct}=="9311", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/marc/.Xauthority", RUN+="/home/marc/bin/hdmi"