xmonitor is a small program to watch your active monitor connections and spit out events for other scripts to consume. Inspired by similar programs like xtitle.
Two dependencies: libX11, libXrandr.
Installation is just with a simple Makefile:
make
sudo make install
By default the executable installs as /usr/local/bin/xmonitor
.