stnvh / cgorigin

change display position from the cli OS X

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cgorigin

Set display alignment of monitors on the CLI - built for OS X.

usage

--list

shows a list of currently online displays, in the format:

display index: widthxheight posXxposY

--origin

sets the origin for a display. posX & posY can be both positive and negative values. index defaults to the second monitor.

usage: posX posY index

example:

assuming we have two monitors connected, both at 1920x1080

cgorigin --origin -1920 0  # positions the second monitor to the left of the main display
cgorigin --origin 0 0  # positions the second monitor to the right of the main display
cgorigin --origin -1920 1080 0  # positions the first monitor below the second display

build

make

(p.s. you probably need xcode)

About

change display position from the cli OS X


Languages

Language:Objective-C 93.9%Language:Makefile 6.1%