Initial commit of detectMonitor.sh script

This script is pretty crude, but does the job.

I couldn't find a way via udev / dbus / dmesg / whatever of polling for display state changes, and after coming across http://unix.stackexchange.com/questions/13746/how-can-i-detect-when-a-monitor-is-plugged-in-or-unplugged, this confirmed for me that I'd need to call xrandr and compare previous values to determine state changes.