Detectdisplays - A command-line tool for Macs that detects attached displays.