jakehilborn / displayplacer

macOS command line utility to configure multi-display resolutions and arrangements. Essentially XRandR for macOS.
MIT License
3.74k stars 134 forks source link

How exactly does displayplacer work? #48

Open imthenachoman opened 3 years ago

imthenachoman commented 3 years ago

I want to use this but due to my MacOS being locked down, I can't install apps from the internet. I have the admin account so I technically can't but it is against policy.

I am wondering if there is a way to do what displayplacer does manually. Mainly the only thing I want to do is set monitor. The GUI method from System Preferences does not allow pixel precision.

jakehilborn commented 3 years ago

There's no way to do this manually that I'm aware of. Displayplacer isn't an app that is installed though. If you'd like to try it, download the latest release from here instead of using homebrew and use a terminal to execute it.

imthenachoman commented 3 years ago

I will still have to get approval to use it. Do you mind telling me how it works? What does the code do to make the changes? I don't know C so I can't debug the code. Is it changing MacOS setting files?

jakehilborn commented 3 years ago

Displayplacer is just a wrapper on the Apple Quartz Display Services APIs. It doesn't modify any files anywhere.

imthenachoman commented 3 years ago

Rock on. Thank you!