I have tried so many rules… the script works via command line and via i3 hotkey… but I cant get ANYTHING to work on the udev event that is being triggered. I have been trying to get this to work for so long… I have tried using other scripts such as ones that just try to echo to a file in /tmp to see if it was my script but those dont work either. I can even see the correct rule being printed to the 99-local.rules file as its supposed to be…
It just needs to run the script whenever the monitor is plugged in/unplugged. Any other method than udev of achieving this same effect without polling would be ok too.
link to my configuration with the rules ive tried and how I am creating it, and then the udev monitor event below
KERNEL[43765.651020] change /devices/pci0000:00/0000:00:02.0/drm/card0 (drm)
ACTION=change
DEVPATH=/devices/pci0000:00/0000:00:02.0/drm/card0
SUBSYSTEM=drm
HOTPLUG=1
DEVNAME=/dev/dri/card0
DEVTYPE=drm_minor
SEQNUM=6945
MAJOR=226
MINOR=0
UDEV [43765.656213] change /devices/pci0000:00/0000:00:02.0/drm/card0 (drm)
ACTION=change
DEVPATH=/devices/pci0000:00/0000:00:02.0/drm/card0
SUBSYSTEM=drm
HOTPLUG=1
DEVNAME=/dev/dri/card0
DEVTYPE=drm_minor
SEQNUM=6945
USEC_INITIALIZED=5614610
PATH=/nix/store/a3d7il4hlfw3vij5nl3rplbmrf6l316r-udev-path/bin:/nix/store/a3d7il4hlfw3vij5nl3rplbmrf6l316r-udev-path/sbin
ID_PATH=pci-0000:00:02.0
ID_PATH_TAG=pci-0000_00_02_0
ID_FOR_SEAT=drm-pci-0000_00_02_0
DMI_VENDOR=ASUSTeK COMPUTER INC.
DMI_FAMILY=TUF GAMING
DISPLAY=:0
XAUTHORITY=/home/birdee/.Xauthority
MAJOR=226
MINOR=0
DEVLINKS=/dev/dri/by-path/pci-0000:00:02.0-card
TAGS=:master-of-seat:seat:uaccess:
CURRENT_TAGS=:master-of-seat:seat:uaccess: