macOS CLI tool to configure multi-display resolutions and arrangements

displayplacer

PRs Welcome
macOS command line utility to configure multi-display resolutions and arrangements. Essentially XRandR for macOS.

Install via Homebrew with brew tap jakehilborn/jakehilborn && brew install displayplacer or visit the releases tab.

Usage:

Show current screen info and possible resolutions: displayplacer list

Apply screen config (hz & color_depth are optional): displayplacer "id: res:x hz: color_depth: scaling: origin:(,) degree:<0/90/180/270>"

Apply screen config using mode: displayplacer "id: mode: origin:(,) degree:<0/90/180/270>"

Apply screen config with mirrored screens: displayplacer "id:+<1stMirrorScreenId>+<2ndMirrorScreenId> res:x scaling: origin:(,) degree:<0/90/180/270>"

Example w/ all features: displayplacer "id:18173D22-3EC6-E735-EEB4-B003BF681F30+F466F621-B5FA-04A0-0800-CFA6C258DECD res:1440x900 scaling:on origin:(0,0) degree:0" "id:4C405A05-8798-553B-3550-F93E7A7722BB res:768x1360 hz:60 color_depth:8 scaling:off origin:(1440,0) degree:90" "id:A46D2F5E-487B-CC69-C588-ECFD519016E5 mode:3 origin:(-1440,0) degree:270"

Instructions:

  1. Manually set rotations 1st*, resolutions 2nd, and arrangement 3rd. For extra resolutions and rotations read ‘Notes’ below.
    • Open System Preferences -> Displays
    • Choose desired screen rotations (use displayplacer for rotating internal MacBook screen).
    • Choose desired resolutions (use displayplacer for extra resolutions).
    • Drag the white bar to your desired primary screen.
    • Arrange screens as desired and/or enable mirroring. To enable partial mirroring hold the alt/option key and drag a display on top of another.
  2. Use displayplacer list to print your current layout’s args so you can create profiles for scripting/hotkeys with Automator, BetterTouchTool, etc.

Notes:

  • *displayplacer list and system prefs only show resolutions for the screen’s current rotation.
  • Use an extra resolution shown in displayplacer list by executing displayplacer "id: mode:"
  • Rotate your internal MacBook screen by executing displayplacer "id: degree:<0/90/180/270>"
  • The screen set to origin (0,0) will be set as the primary screen (white bar in system prefs).
  • The first screenId in a mirroring set will be the ‘Optimize for’ screen in the system prefs. You can only choose resolutions for the ‘Optimize for’ screen. If there is a mirroring resolution you need but cannot find, try making a different screenId the first of the set.
  • hz and color_depth are optional. If left out, the highest hz and then the highest color_depth will be auto applied.
  • Persistent screen ids always stay the same. Contextual screen ids change when switching GPUs or when switching ports. It’s recommended to use persistent screen ids. In some rare cases, you may need to use contextual screen ids since the modes list changes when macOS switches GPUs.

Feedback:

Please create a GitHub Issue for any feedback, feature requests, bugs, Homebrew issues, etc. Happy to accept pull requests too!

Read More
Diego Guillemette

Latest

Fighting childhood obesity: Researchers study semaglutide with adolescents

🛡️ Just a quick check We’re checking your connection to prevent automated abuse

AMA Sued Over Its ‘Paywalled’ Billing Codes

You don't have permission to access "http://www.medpagetoday.com/practicemanagement/reimbursement/122777" on this server. Reference #18.8db31702.1787937346.49f660c https://errors.edgesuite.net/18.8db31702.1787937346.49f660c

Saudi-Pakistan Partnership Takes Flight with New Riyadh Air Routes

Saudi Arabia’s newest national carrier Riyadh Air will launch direct flights to Pakistan this month, adding fresh momentum to one of the Gulf’s closest strategic partnerships. Why it matters: The routes arrive less than a year after Riyadh and Islamabad signed a landmark mutual defense pact, and they tap into a travel corridor already worth

Can Oriadé Redefine Davido’s Legacy, or Just Extend It?

Fifteen years after bursting onto the African music scene, Davido returned this week with Oriadé, an album that immediately dominated headlines and reignited conversations about his place in Afrobeats history. Commercial success is no longer the question. Davido has sold out arenas, amassed billions of streams and become one of the defining architects of Afrobeats’

Newsletter

Don't miss

Fighting childhood obesity: Researchers study semaglutide with adolescents

🛡️ Just a quick check We’re checking your connection to prevent automated abuse

AMA Sued Over Its ‘Paywalled’ Billing Codes

You don't have permission to access "http://www.medpagetoday.com/practicemanagement/reimbursement/122777" on this server. Reference #18.8db31702.1787937346.49f660c https://errors.edgesuite.net/18.8db31702.1787937346.49f660c

Saudi-Pakistan Partnership Takes Flight with New Riyadh Air Routes

Saudi Arabia’s newest national carrier Riyadh Air will launch direct flights to Pakistan this month, adding fresh momentum to one of the Gulf’s closest strategic partnerships. Why it matters: The routes arrive less than a year after Riyadh and Islamabad signed a landmark mutual defense pact, and they tap into a travel corridor already worth

Can Oriadé Redefine Davido’s Legacy, or Just Extend It?

Fifteen years after bursting onto the African music scene, Davido returned this week with Oriadé, an album that immediately dominated headlines and reignited conversations about his place in Afrobeats history. Commercial success is no longer the question. Davido has sold out arenas, amassed billions of streams and become one of the defining architects of Afrobeats’

AI in Formula One: Competitive advantage is all about the human in the loop

Aston Martin Aramco F1 Follow ZDNET:  Add us as a preferred source  on Google. ZDNET's key takeaways F1 success is about a blend of digital and human skills. Experienced professionals must guide AI explorations. Human handcraft unlocks value from agentic services. In a sport defined by small performance differentials on the track, rapid data-powered decisions

Global Business Travel Spending to Hit Record $1.71 Trillion in 2026, While Trips Reach 1.84 Billion, Says GBTA Forecast

In Brief: GBTA’s latest Business Travel Index report shows spending gains driven by higher prices as geopolitical uncertainty and transportation pressures weigh on the outlook Global Business Travel Spending to Hit Record $1.71 Trillion in 2026, While Trips Reach 1.84 Billion, Says GBTA Forecast - Image Credit Unsplash+    Global business travel spending is forecast to

Boulevard Business Park: Saudi Arabia’s Bold Bet on Mixed-Use Development

Boulevard Business Park Saudi Arabia has marked another milestone in its urban and entertainment transformation with the completion of the Kingdom’s first entertainment-focused business park and corporate resort. This remarkable achievement reflects a new approach to commercial development that thoughtfully blends business, hospitality and leisure within a single destination. More Than an Office Park Located

How Chaoshan Business Was Built on Morals, Not Contracts

This is the second article in a series on China's southern Chaoshan region, exploring the history, culture, and identities behind its recent resurgence in the spotlight. Read Part 1. In the Chinatowns of early 20th-century Bangkok, Chinese laborers who had just collected their wages would make their way to the qiaopiju, a private institution that