News for hackers. Stuff that matters.
Re:Show HN: Change screen layout when connecting/disconnecti... by mikeokner on Tuesday April 26, 2016 @10:23AM (#11572095)
For those on Mac, Slate will do the same thing: https://github.com/jigish/slate
Re:Show HN: Change screen layout when connecting/disconnecti... by mwfunk on Tuesday April 26, 2016 @01:11PM (#11573701)
Actually for those on the Mac, OS X will do the same thing. It tries to at least (not 100% reliable).
Re:Show HN: Change screen layout when connecting/disconnecti... by mikeokner on Tuesday April 26, 2016 @03:39PM (#11574913)
"xoutputd is a daemon that monitors the connection state of outputs and then executes commands based on defined rules."

I'm not aware of anything built in to OS X that allows you to execute scripts to perform custom actions when displays are connected/disconnected. OS X just tries to replicate the last layout you had.

* Plugged into your desk monitor? You can have Slate hide Steam and put MacVim & 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.

Re:Show HN: Change screen layout when connecting/disconnecti... by Carrok on Tuesday April 26, 2016 @05:16PM (#11575702)
I would recommend Hammerspoon for this type of automation. http://www.hammerspoon.org/
Re:Show HN: Change screen layout when connecting/disconnecti... by nasalgoat on Tuesday April 26, 2016 @04:57PM (#11575554)
Sadly, Slate hasn't been updated in three years and recent El Capitan releases has broken it for certain applications, most importantly iTerm2.