{"id":600719,"date":"2023-01-24T06:49:17","date_gmt":"2023-01-24T12:49:17","guid":{"rendered":"https:\/\/news.sellorbuyhomefast.com\/index.php\/2023\/01\/24\/macos-cli-tool-to-configure-multi-display-resolutions-and-arrangements-2\/"},"modified":"2023-01-24T06:49:17","modified_gmt":"2023-01-24T12:49:17","slug":"macos-cli-tool-to-configure-multi-display-resolutions-and-arrangements-2","status":"publish","type":"post","link":"https:\/\/newsycanuse.com\/index.php\/2023\/01\/24\/macos-cli-tool-to-configure-multi-display-resolutions-and-arrangements-2\/","title":{"rendered":"macOS CLI tool to configure multi-display resolutions and arrangements"},"content":{"rendered":"<div data-target=\"readme-toc.content\">\n<article itemprop=\"text\">\n<p dir=\"auto\"><a href=\"http:\/\/github.com\/#\"><img decoding=\"async\" src=\"http:\/\/github.com\/jakehilborn\/displayplacer\/raw\/master\/animation.gif\" data-animated-image><\/a><\/p>\n<h2 dir=\"auto\">displayplacer<\/h2>\n<p dir=\"auto\"><a href=\"https:\/\/github.com\/firstcontributions\/first-contributions\"><img decoding=\"async\" src=\"https:\/\/camo.githubusercontent.com\/b0ad703a46e8b249ef2a969ab95b2cb361a2866ecb8fe18495a2229f5847102d\/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e737667\" alt=\"PRs Welcome\" data-canonical-src=\"https:\/\/img.shields.io\/badge\/PRs-welcome-brightgreen.svg\"><\/a><br \/>\nmacOS command line utility to configure multi-display resolutions and arrangements. Essentially XRandR for macOS.<\/p>\n<p dir=\"auto\">Install via Homebrew with <code>brew tap jakehilborn\/jakehilborn && brew install displayplacer<\/code> or visit the <a href=\"https:\/\/github.com\/jakehilborn\/displayplacer\/releases\">releases<\/a> tab.<\/p>\n<h4 dir=\"auto\">Usage:<\/h4>\n<p dir=\"auto\">Show current screen info and possible resolutions: <code>displayplacer list<\/code><\/p>\n<p dir=\"auto\">Apply screen config (hz &#038; color_depth are optional): <code>displayplacer \"id:<screenId> res:<width>x<height> hz:<num> color_depth:<num> scaling:<on\/off> origin:(<x>,<y>) degree:<0\/90\/180\/270>\"<\/code><\/p>\n<p dir=\"auto\">Apply screen config using mode: <code>displayplacer \"id:<screenId> mode:<modeNum> origin:(<x>,<y>) degree:<0\/90\/180\/270>\"<\/code><\/p>\n<p dir=\"auto\">Apply screen config with mirrored screens: <code>displayplacer \"id:<mainScreenId>+<1stMirrorScreenId>+<2ndMirrorScreenId> res:<width>x<height> scaling:<on\/off> origin:(<x>,<y>) degree:<0\/90\/180\/270>\"<\/code><\/p>\n<p dir=\"auto\">Example w\/ all features: <code>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\"<\/code><\/p>\n<h4 dir=\"auto\">Instructions:<\/h4>\n<ol dir=\"auto\">\n<li>Manually set rotations 1st*, resolutions 2nd, and arrangement 3rd. For extra resolutions and rotations read &#8216;Notes&#8217; below.\n<ul dir=\"auto\">\n<li>Open System Preferences -> Displays<\/li>\n<li>Choose desired screen rotations (use displayplacer for rotating internal MacBook screen).<\/li>\n<li>Choose desired resolutions (use displayplacer for extra resolutions).<\/li>\n<li>Drag the white bar to your desired primary screen.<\/li>\n<li>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.<\/li>\n<\/ul>\n<\/li>\n<li>Use <code>displayplacer list<\/code> to print your current layout&#8217;s args so you can create profiles for scripting\/hotkeys with <a href=\"https:\/\/github.com\/jakehilborn\/displayplacer\/issues\/13\" data-hovercard-type=\"issue\" data-hovercard-url=\"\/jakehilborn\/displayplacer\/issues\/13\/hovercard\">Automator<\/a>, BetterTouchTool, etc.<\/li>\n<\/ol>\n<h4 dir=\"auto\">Notes:<\/h4>\n<ul dir=\"auto\">\n<li>*<code>displayplacer list<\/code> and system prefs only show resolutions for the screen&#8217;s current rotation.<\/li>\n<li>Use an extra resolution shown in <code>displayplacer list<\/code> by executing <code>displayplacer \"id:<screenId> mode:<modeNum>\"<\/code><\/li>\n<li>Rotate your internal MacBook screen by executing <code>displayplacer \"id:<screenId> degree:<0\/90\/180\/270>\"<\/code><\/li>\n<li>The screen set to origin (0,0) will be set as the primary screen (white bar in system prefs).<\/li>\n<li>The first screenId in a mirroring set will be the &#8216;Optimize for&#8217; screen in the system prefs. You can only choose resolutions for the &#8216;Optimize for&#8217; screen. If there is a mirroring resolution you need but cannot find, try making a different screenId the first of the set.<\/li>\n<li>hz and color_depth are optional. If left out, the highest hz and then the highest color_depth will be auto applied.<\/li>\n<li>Persistent screen ids always stay the same. Contextual screen ids change when switching GPUs or when switching ports. It&#8217;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.<\/li>\n<\/ul>\n<h4 dir=\"auto\">Feedback:<\/h4>\n<p dir=\"auto\">Please create a GitHub Issue for any feedback, feature requests, bugs, Homebrew issues, etc. Happy to accept pull requests too!<\/p>\n<\/p><\/div>\n<p><a href=\"https:\/\/github.com\/jakehilborn\/displayplacer\" class=\"button purchase\" rel=\"nofollow noopener\" target=\"_blank\">Read More<\/a><br \/>\n Buffy Fleishman<\/p>\n","protected":false},"excerpt":{"rendered":"<p>displayplacer macOS command line utility to configure multi-display resolutions and arrangements. Essentially XRandR for macOS. Install via Homebrew with brew tap jakehilborn\/jakehilborn &amp;&amp; brew install displayplacer or visit the releases tab. Usage: Show current screen info and possible resolutions: displayplacer list Apply screen config (hz &amp; color_depth are optional): displayplacer &#8220;id: res:x hz: color_depth: scaling:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":{"0":"post-600719","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-business-news"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/newsycanuse.com\/index.php\/wp-json\/wp\/v2\/posts\/600719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/newsycanuse.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/newsycanuse.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/newsycanuse.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/newsycanuse.com\/index.php\/wp-json\/wp\/v2\/comments?post=600719"}],"version-history":[{"count":0,"href":"https:\/\/newsycanuse.com\/index.php\/wp-json\/wp\/v2\/posts\/600719\/revisions"}],"wp:attachment":[{"href":"https:\/\/newsycanuse.com\/index.php\/wp-json\/wp\/v2\/media?parent=600719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/newsycanuse.com\/index.php\/wp-json\/wp\/v2\/categories?post=600719"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/newsycanuse.com\/index.php\/wp-json\/wp\/v2\/tags?post=600719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}