jakehilborn / displayplacer

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

Screen Arrangement Not Being Saved #136

Open GBC-22 opened 2 months ago

GBC-22 commented 2 months ago

Hi,

I'm trying to capture a screen arrangement on a Mac Studio M2. Using 2 identical monitors, and two different monitors (mirrored) above them. The persistent screen id's don't seem to change.

Here's the desired screen config: Screenshot 2024-04-26 at 18 03 55

After setting the above layout, I've run displayplacer list, and then executed the resulting generated command to set the config. Unfortunately, after running the command, the screen config resets to the following: Screenshot 2024-04-26 at 18 03 38

Not sure if this is an issue with displayplacer, or if I've missed something?

Here's the command that was generated: displayplacer "id:<persistent id 1> res:1920x1080 hz:60 color_depth:8 enabled:true scaling:off origin:(0,0) degree:0" "id:<persistent id 3> +<persistent id 4> res:1280x720 hz:60 color_depth:8 enabled:true scaling:off origin:(-1920,-704) degree:0" "id:<persistent id 2> res:1920x1080 hz:60 color_depth:8 enabled:true scaling:off origin:(-1920,16) degree:0"

Any help appreciated. Thanks.

timglenn123 commented 2 months ago

I was able to get this to work by first arranging the main display, then mirroring.

/usr/local/bin/displayplacer "id:37D8832A-2D66-02CA-B9F7-8F30A301B230 res:1512x982 hz:120 color_depth:8 enabled:true scaling:on origin:(845,1692) degree:0"

/usr/local/bin/displayplacer "id:37D8832A-2D66-02CA-B9F7-8F30A301B230+0305020B-BF03-4115-B201-5CF034AC2B0A res:1512x982 hz:120 color_depth:8 enabled:true scaling:on origin:(845,1692) degree:0"