Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Thanks, I will try it out to see if it can first solve my main problem - I'm looking for a way on Mac for it to reasonably remember the screen layouts.

Every time it wakes from boots, the desktop has complete amnesia with 3 screens.

Ideally I'd be able to drive my own workspaces, and it can use the laptop screen only, or 2 or 3 external monitors at different desks (work and home).



I've resorted to running a shell script every time I plug in.

displayplacer "id:... res:2048x1330 hz:120 color_depth:8 enabled:true scaling:off origin:(0,0) degree:0" "id:... res:3840x2160 hz:30 color_depth:8 enabled:true scaling:off origin:(-918,-2160) degree:0"

displayplacer is very easy to set up and also gives you access to modes that you can't access with System Preferences.


Wanted this to exist for so long. I’ve started learning Swift to build an app to solve this. Then I discovered HammerSpoon[1] and since I use a HammerSpoon lua script to adjust the windows layout for my different setups: 1. Laptop only mode 2. At home my MacBook screen is closed and connected to 2 external monitors 3. At work my MacBook screen is open and connected to 1 external monitor

The script detects the connected screen UUID and applies the appropriate layout

[1] http://www.hammerspoon.org/


Thanks, I'll check it out. This looks great.

It's a little baffling how MacOS hasn't been able to get this to work. If a Matrox TripleHead2Go could hit a high enough resolution for multiple monitors it might be a possibility.

It did improve with a few tweaks but every so often it forgets.

First I thought it was a Macbook Pro thing. But a Mac Studio, with 3 separate monitors plugged into it, was just as confused.

I'm not sure how Windows and Ubuntu can handle it just fine from my experience.


I use Rectangle on macos for this exact use case. Used to use Yabai but now Rectangle is my daily driver for this sort of thing. I'm going to try this one out but global hotkeys for my windows snapping to the right spots when I plug my laptop in is hard to give up


The days of “it just works” is long gone.


but we have come a long way from “most applications crash if not the system hangs” (or macintosh as it’s known for short)


It does just work. On windows.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: