TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

macOS CLI tool to configure multi-display resolutions and arrangements

177 pointsby dwarduover 2 years ago

24 comments

alin23over 2 years ago
I recently launched some macOS Shortcuts in Lunar (<a href="https:&#x2F;&#x2F;lunar.fyi&#x2F;#shortcuts" rel="nofollow">https:&#x2F;&#x2F;lunar.fyi&#x2F;#shortcuts</a>) that can arrange monitors in pre-defined layouts like:<p><pre><code> 2 Screens Vertically ■̳̲ 2 Screens Horizontally ⫍⃮݄⫎⃯ 4 Screens in a 3-above-1 configuration ⫍⃮■̳̻⫎⃯ 3 Screens in a 2-above-1 configuration ⫍‗⫎ 3 Screens Horizontally ⫍⃮▬̲⫎⃯ </code></pre> It&#x27;s not the same as DisplayPlacer but for a lot of people this could be enough. They are free and can be used without a Lunar Pro license.<p>For those having trouble with monitors being swapped around by the OS, there&#x27;s also a <i>Swap screen positions</i> action in Shortcuts that you can bind to a hotkey to quickly fix this. It even swaps rotations, which is especially useful for those using portrait monitors (one at 90° and one at 270°).
评论 #34488965 未加载
评论 #34488448 未加载
MattIPv4over 2 years ago
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.
评论 #34488628 未加载
评论 #34488816 未加载
评论 #34488648 未加载
评论 #34496603 未加载
评论 #34488953 未加载
ricardobeatover 2 years ago
I really liked the display settings built-in to MacOS, very straightforward.<p>Unfortunately, with Ventura, they now hid the arrangement in a separate options window that takes extra clicks to reach. A step backwards :&#x2F;
评论 #34489290 未加载
评论 #34489630 未加载
seatbeltsover 2 years ago
I was stoked to see this, unfortunately, this has gone 4 years without a release (last released in 2019)<p>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&#x27;m still on Intel.
评论 #34491414 未加载
评论 #34487480 未加载
评论 #34487378 未加载
parastiover 2 years ago
Great timing. Today I discovered that the iMac 24&quot; screen can&#x27;t be rotated. I have it on a VESA mount, so I can rotate it physically, but screen rotation settings are inaccessible (even with the Option key) via system settings. When I attempt rotation via displayplacer (tool in OP), it just complains that it &quot;could not find res&quot;. There&#x27;s a surprising lack of good search results on this. Seems to be related to the iMac overheating, but that&#x27;s information coming from a random forum post that I found, not from Apple.<p>Edit: found Display Rotation Menu via DisplayPlacer Github issues, which is so far the only tool that worked for me.
评论 #34487528 未加载
deancover 2 years ago
This hasn&#x27;t been updated in a while. What I really want from this kind of tool is the ability to take a snapshot of my ALL display settings, and just click something on my desktop or bind a keyboard shortcut, or run a command which will restore it - exactly how it should be. This would include, exact screen positioning, refresh rate, resolutions etc.<p>I don&#x27;t know what triggers it, but MacOS is really bad at changing these settings if you use multiple displays through the week (e.g. different coworking spaces).
评论 #34493383 未加载
评论 #34490113 未加载
评论 #34489158 未加载
mnemncover 2 years ago
Not calling it displaycer is a missed opportunity.
评论 #34491636 未加载
umberthreat34gover 2 years ago
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&#x2F;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?
评论 #34491514 未加载
Analemma_over 2 years ago
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.
评论 #34491475 未加载
xvilkaover 2 years ago
It reminds of seemingly abandoned &quot;mas&quot;[1] tool that allows using command line to install and update applications without launching AppStore.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;mas-cli&#x2F;mas">https:&#x2F;&#x2F;github.com&#x2F;mas-cli&#x2F;mas</a>
Uupisover 2 years ago
There was a two-three year period where macOS would incessantly forget my display arrangement and orientation.<p>An Alfred action to run the displayplacer command and then after a second to activate my &#x27;default&#x27; Moom window layout made for a great workaround.
评论 #34487342 未加载
derhuerstover 2 years ago
I have used cscreen [1][2] for a while to switch resolutions beyond what macOS offers via its GUI. You can install it via `brew install cscreen`.<p>It seems like displayplacer is the spiritual and de facto successor to screen. [3]<p>[1] <a href="https:&#x2F;&#x2F;www.pyehouse.com&#x2F;cscreen&#x2F;#comments" rel="nofollow">https:&#x2F;&#x2F;www.pyehouse.com&#x2F;cscreen&#x2F;#comments</a> [2] <a href="https:&#x2F;&#x2F;apple.stackexchange.com&#x2F;a&#x2F;73696" rel="nofollow">https:&#x2F;&#x2F;apple.stackexchange.com&#x2F;a&#x2F;73696</a> [3] <a href="https:&#x2F;&#x2F;apple.stackexchange.com&#x2F;a&#x2F;173875" rel="nofollow">https:&#x2F;&#x2F;apple.stackexchange.com&#x2F;a&#x2F;173875</a>
asmorover 2 years ago
I have a setup where I share a screen between two computers (a macOS productivity machine and a Windows gaming laptop &#x2F; x86 VM lab). I did look at a lot of tools to be able to disable one of the screens in macOS so I wouldn&#x27;t need to fiddle with cables, and I remember that this one didn&#x27;t work.<p>I use mirror-displays[1] (alongside Bunch, which also turns on VBAN Talkie for audio) now. Mirroring a screen is the only way to approximate disabled screens.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;fcanas&#x2F;mirror-displays">https:&#x2F;&#x2F;github.com&#x2F;fcanas&#x2F;mirror-displays</a>
评论 #34495180 未加载
评论 #34496697 未加载
jamespoover 2 years ago
Related to this does anyone know a way to turn off displays in MacOS? I have 2 screens connected to an M1 Mac Mini.
评论 #34488189 未加载
评论 #34491695 未加载
Syzygiesover 2 years ago
I had a rather expensive monitor that would sometimes refuse to wake up. I ended up scripting an Alfred keystroke to use AppleScript and System Preferences to toggle the resolution, which would wake up the screen. This would be easier, as I could simply SSH in from another machine.
sleight42over 2 years ago
I don&#x27;t suppose it exposes commands to switch a Universal Controlled device from extended screen mode to remote keyboard-mouse control?<p>I have to reset this setting in Settings -&gt; Display every few hours when the connection gets disrupted between my two macs for unknown reasons...
joshstrangeover 2 years ago
displayplacer is an awesome tool that I&#x27;ve mentioned on HN a number of times before. I have my displayplacer command setup to be run by Alfred so that when I connect my monitors I can just invoke Alfred, type &quot;disp&quot;, and hit enter.<p>The next step would be to have it auto-run when monitors were attached but this works well enough for me. displayplacer for monitor alignment, phoenix for window management, and my own hacked together mousejump for jumping over the monitor gaps make for an awesome experience.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;kasper&#x2F;phoenix">https:&#x2F;&#x2F;github.com&#x2F;kasper&#x2F;phoenix</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;joshstrange&#x2F;mousejump">https:&#x2F;&#x2F;github.com&#x2F;joshstrange&#x2F;mousejump</a>
matt_daemonover 2 years ago
Would love if these tools also had the ability to save application window settings too.
评论 #34488069 未加载
评论 #34487560 未加载
评论 #34490171 未加载
anthonyaykutover 2 years ago
I use Display Maid, and it is pretty OK for my simple needs: <a href="https:&#x2F;&#x2F;funk-isoft.com&#x2F;display-maid.html" rel="nofollow">https:&#x2F;&#x2F;funk-isoft.com&#x2F;display-maid.html</a>
评论 #34491834 未加载
haliskerbasover 2 years ago
I’ve used hammerspoon for part of this functionality. Anyone else?
评论 #34492628 未加载
bryanrasmussenover 2 years ago
I really think this needs some screenshots.
评论 #34487520 未加载
looseyesterdayover 2 years ago
The description could be better. Would love this tool with a GUI
评论 #34491588 未加载
评论 #34488058 未加载
squidofbitsover 2 years ago
Missed opportunity to call it displaycer
bobberkarlover 2 years ago
Is there one for windows?