hdmi-cable-toggled Automatically sets video and audio output when HDMI cable is toggled References https://wiki.archlinux.org/index.php/PulseAudio/Examples https://stackoverflow.com/questions/20395027/scripts-launched-from-udev-do-not-have-display-access-anymore