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
Buffy Fleishman

Latest

5 Iconic ‘80s Movies You Can Stream Right Now

When we talk about great decades for entertainment, the 1990s usually come up and understandably so. That was a decade of great sci-fi, rom-coms, and more. But the 1990s aren’t the only decade with great movies. The 1980s was also a great time for movie fans, bringing to the screen a wide variety of movies

Sega reports $31.6m net loss during FY26, cancels ‘Super Game’ project amid strategic pivot

Impairment losses from Rovio and Stakelogic push company to reduce free-to-play priority and focus on full game development Image credit: Sega Sega Sammy has released its financial results for the year ending March 31, 2026. While net sales increased by 13.6%, operating income from its entertainment contents, including the video games division, declined from ¥40.8

African Businesses Feel the Pinch as Customers Flock to Online Gambling

African businesses are now competing for discretionary spending against a new sector – online gambling. As it proliferates, regular businesses, whether entertainment providers, phone companies, or even grocery shops, are seeing customers increasingly willing to spend on games of chance rather than perishables, a good flick, or faster internet. “People are spending money in a

Newsletter

Don't miss

5 Iconic ‘80s Movies You Can Stream Right Now

When we talk about great decades for entertainment, the 1990s usually come up and understandably so. That was a decade of great sci-fi, rom-coms, and more. But the 1990s aren’t the only decade with great movies. The 1980s was also a great time for movie fans, bringing to the screen a wide variety of movies

Sega reports $31.6m net loss during FY26, cancels ‘Super Game’ project amid strategic pivot

Impairment losses from Rovio and Stakelogic push company to reduce free-to-play priority and focus on full game development Image credit: Sega Sega Sammy has released its financial results for the year ending March 31, 2026. While net sales increased by 13.6%, operating income from its entertainment contents, including the video games division, declined from ¥40.8

African Businesses Feel the Pinch as Customers Flock to Online Gambling

African businesses are now competing for discretionary spending against a new sector – online gambling. As it proliferates, regular businesses, whether entertainment providers, phone companies, or even grocery shops, are seeing customers increasingly willing to spend on games of chance rather than perishables, a good flick, or faster internet. “People are spending money in a

WD sees sustainability as key business driver in an ‘AI economy’

Hard drive company WD promoted long-term operations and sustainability executive Jackie Jung to become its first chief sustainability officer in February, as it steps up sales to companies building AI data centers. Her vision: Turn sustainability into a “brand” for WD, a strategy that reduces risk for the $6 billion company (formerly known as Western

5 Business Ideas Worth Starting in 2026

If there is one thing Nigerians understand well, it is how to spot opportunity inside hardship. In 2026, that mindset will matter more than ever. The economy is tough, competition is rising, and many people are looking for smarter ways to earn, build, and survive. But even in a difficult environment, some businesses still stand

Getting a business loan now comes with a frequent flyer upside

Australian fintech Prospa has partnered with Qantas Business Rewards, letting eligible SMEs earn up to 500,000 points per loan. What’s happening: Australian fintech lender Prospa has partnered with Qantas Business Rewards to allow eligible small and medium business owners to earn up to 500,000 Qantas Points per loan when taking out a Prospa Small Business