<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Giridharan Manivannan</title>
    <description>The latest articles on DEV Community by Giridharan Manivannan (@giri).</description>
    <link>https://dev.to/giri</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F8175%2FxMVJXtBL.jpg</url>
      <title>DEV Community: Giridharan Manivannan</title>
      <link>https://dev.to/giri</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/giri"/>
    <language>en</language>
    <item>
      <title>Edit display layout on Macos with displayplacer</title>
      <dc:creator>Giridharan Manivannan</dc:creator>
      <pubDate>Mon, 07 Aug 2023 06:07:46 +0000</pubDate>
      <link>https://dev.to/giri/edit-display-layout-on-macos-with-displayplacer-3cg2</link>
      <guid>https://dev.to/giri/edit-display-layout-on-macos-with-displayplacer-3cg2</guid>
      <description>&lt;p&gt;Having a giant external monitor is great, love the extra real estate that you get. But it's pesky when you need to switch your mac close-by or switch it back into the dock.&lt;/p&gt;

&lt;p&gt;Add to this a constant need to ensure your layout matches the physical arrangement, and you end up with a silly amount of time navigating Displays &amp;gt; Arrange and making the layout look just right.&lt;/p&gt;

&lt;p&gt;And it has been a terrible experience all round, until recently when I ran into &lt;a href="https://github.com/jakehilborn/displayplacer"&gt;displayplacer&lt;/a&gt;. They describe themselves as &lt;code&gt;XRandR for Macos&lt;/code&gt; and that's it. Problem solved.&lt;/p&gt;

&lt;p&gt;Once you install displayplacer, You can have any number of display layouts and arrangements configured, whose config you can gather up as a command which looks something like the below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;displayplacer "id:BCXXXXXX-DXXX-4XXX-8XXX-D1XXXXXXXXXX res:3008x1692 hz:60 color_depth:8 enabled:true scaling:on origin:(0,0) degree:0" "id:37XXXXXX-2XXX-0XXX-BXXX-8FXXXXXXXXXX res:1512x982 hz:120 color_depth:8 enabled:true scaling:on origin:(957,1692) degree:0"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The command looks unwieldy at first, and it can get can get increasingly longer the more displays you have. The above is an example of a two display setup, but this illustrates the point. &lt;/p&gt;

&lt;p&gt;However, To make it's usage a lot easier, the &lt;code&gt;list&lt;/code&gt; subcommand, gives you options for each device and layout and even more helpfully, returns the current config as the above string. &lt;/p&gt;

&lt;p&gt;So, once you have each of your arrangements as a displayplacer command, save it as an alias to each config and you can switch between each from the terminal or as a result of any automation that you set up.&lt;/p&gt;

</description>
      <category>macos</category>
      <category>display</category>
      <category>layout</category>
      <category>displayplacer</category>
    </item>
  </channel>
</rss>
