srandrd is a simple daemon that executes a command when the xorg output changes, i.e. a monitor is plugged or unplugged. By default srandrd forks to background and exits when the xserver exits.
srandrd [option] command_with_options_to_execute
-h Show help and exit -n Don't fork to background -V Show version info and exit
This repository is a fork of portix's mercurial repo, found here. While I found his version nearly perfect, I wanted some changes and his repo seems unmaintained.