Skip to content
ofxDisplayLayout grabs the display unique id, and aligns your displays vertically/horizontally
Objective-C++ C++ Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
src
.gitignore
ofxaddons_thumbnail.png
readme.md

readme.md

ofxDisplayLayout grabs the display unique ID, and aligns your displays vertically/horizontally

!!!: This addon supports only Mac OS.
!!!: Less than OF 0.9.0 is not supported since this addon uses C++11 features.

(before alignment...)

ofxDisplayLayout::ALIGN_HORIZONTAL

ofxDisplayLayout::ALIGN_VERTICAL

Use case

  • When you want to make sure the order of displays connected to your Mac - for an installation which wakes up/shuts down automatically.

Example

  • Arrange the display layout from SystemPreference by hand
  • Launch the example in this repo
  • Press [s] to save the order of the displays. displas.txt will be saved to the bin/data dir. It keeps the display order
  • Rearrange the display layout from SystemPreference by hand
  • Press [l] to load

Demo movie

Testers needed!

ofxDisplayLayout is tested under the environment:

MacBook Pro (Retina, 15-inch, Mid 2014)
OS X 10.10.3 Yosemite
+
External monitor * 2

Please send me a report if this addon works fine on...

  • MacPro + more than 3 monitors + wakes up/shut down automatically
  • Matrox TripleHead
You can’t perform that action at this time.