Live data from Hacker News

macOS CLI tool to configure multi-display resolutions and arrangements

github.com

61–70 of 88 posts

Re: macOS CLI tool to configure multi-display resolutions and arrangements

#61

I was stoked to see this, unfortunately, this has gone 4 years without a release (last released in 2019) The issue log has several issues where Ventura users mention it not working at all, on M1 architectures. Can anyone on an M1 or M2 confirm this works for them? I'm still on Intel.

I placed on order for an M2 MacBook for my wife last week. I'm planning on adding native support within a few months of the laptop arriving.

Re: macOS CLI tool to configure multi-display resolutions and arrangements

#62

Does this somehow make settings more persistent than the System Pref^H^H^H^H Settings panel? Ventura has this infuriating bug where every single time it goes to sleep it forgets everything about the monitors I have plugged into my Thunderbolt dock - resolution, arrangement, refresh rate, everything. It is driving me bonkers.

displayplacer lets you specify all those attributes you mentioned as shell command so you can fix everything with one "click".

Re: macOS CLI tool to configure multi-display resolutions and arrangements

#63

The problem that I have with my M1 is that I have 2 HP monitors with USB-C connectors and when I plug the USB/C Thunderbolt cable in to the monitor, often its not recognized and I often need to power off the machine, the monitor and or switch the ports in some combination, I really wish I could just have a manual probe I could run reliably to tell macOS,the monitor that they are connected. Any ideas?

As far as I understand, there is a low level race condition here. The order that the monitors come alive and initialize with the OS is non deterministic. This can cause the left monitor and the right monitor, for example, to swap IDs.

Re: macOS CLI tool to configure multi-display resolutions and arrangements

#64

The description could be better. Would love this tool with a GUI

I've seen a few comments mention the description now. Thank you for the feedback. I wrote displayplacer because all the other tools were GUIs and I needed something scriptable. Consider using SwitchResX for a multi-display profile GUI tool.

Re: macOS CLI tool to configure multi-display resolutions and arrangements

#66
post #22

Related to this does anyone know a way to turn off displays in MacOS? I have 2 screens connected to an M1 Mac Mini.

The latest code on the master branch of displayplacer supports this. Clone the repo and run `make` to build it. Run `displayplacer "id:34686E82-0CED-DF86-AFC7-AA1A8EB5CFC0 res:1440x2560 enabled:false"` with your screen ID and it will set the screen to all black plus remove the screen from the view of the OS.

Re: macOS CLI tool to configure multi-display resolutions and arrangements

#68
post #36

The one feature I really want for window management on macOS is the ability to split fullscreen applications horizontally, for my vertical monitor. macOS lets you split a fullscreen app vertically so you can have two on the same screen, but when a monitor is oriented vertically you can still only split the screen vertically, not horizontally. Sigh.

Yet another option: https://github.com/koekeishiya/yabai

I will always +1 for yabai, closest thing to i3wm I have found on macos
Post reply on HN