Today I Learned
My displays keep rearranging and displayplacer fixed it
Today I learned about displayplacer - “macOS command line utility to configure multi-display resolutions and arrangements.”
In December, I upgraded to MacOS Tahoe and picked up the TS4 dock for my work machine.
While my upgrade was painless, the biggest issue I’ve had is with my displays. Every time my displays go to sleep and then I come back from lunch or come back the next day to work, my orientation of my displays changes and it puts them in a random order.
My displays should be arranged like this:
[1] [2]
[3] [4]
But after waking from sleep, they end up like this:
[2] [1]
[3] [4]
It’s really annoying. It takes a minute to fix and it’s just frustrating.
I tried displayplacer today. I had Claude Code actually run the displayplacer list command. It figured out which displays and which settings needed to be changed. I had it record that and then I tried it out a few times where I manually dragged my displays around, put them in the wrong order, then ran the command, and it just magically worked.
I saved the working configuration to a shell script:
#!/usr/bin/env bash
# Restore display layout: 4 monitors (2x 16" 1920x1080, 2x 73" 2048x1280)
displayplacer \
"id:F4AB0D6C-8E85-4E84-B5AB-C5B388536E3D res:1920x1080 hz:60 color_depth:8 enabled:true scaling:off origin:(0,0) degree:0" \
"id:C9240C8E-A9D2-418A-89AC-28D3B5DEE5FC res:1920x1080 hz:60 color_depth:8 enabled:true scaling:off origin:(-1920,0) degree:0" \
"id:B43E3352-ACB7-4163-A25B-2DDAE0174571 res:2048x1280 hz:60 color_depth:8 enabled:true scaling:off origin:(0,-1280) degree:0" \
"id:B32F530C-62CF-4F0D-9997-80BF2B812AC8 res:2048x1280 hz:60 color_depth:8 enabled:true scaling:off origin:(-2048,-1280) degree:0"
I also tried setting it up as a Stream Deck key and for some reason I couldn’t get that to work. But it’s fine. I can run a shell script and that takes a lot less time to get it in the right order.
Wednesday February 18, 2026