&quot;xoutputd is a daemon that monitors the connection state of outputs and then executes commands based on defined rules.&quot;<p>I&#x27;m not aware of anything built in to OS X that allows you to execute scripts to perform custom actions when displays are connected&#x2F;disconnected. OS X just tries to replicate the last layout you had.<p>* Plugged into your desk monitor? You can have Slate hide Steam and put MacVim &amp; iTerm side by side.
* Plugged into your TV? You can have Slate run a script to make sure your Plex server is up and then full-screen your browser.
* Etc.