[i3-discuss] Re: Mirror display across two monitors

  • From: Serge van Ginderachter <serge@xxxxxxxxxxxxxxxxxx>
  • To: i3-discuss@xxxxxxxxxxxxx
  • Date: Sat, 26 Jan 2019 09:58:38 +0100

I totally agree with this. Allow me to explain my dynamic screen setup,
might interest people.

I use arandr when I need to do a custom setup, connect to a new monitor, ...
When conecting to my usual setups, I use arandr to configure them, then
export/save a bash xrandr script to set those up when I reconnect them.

The best tool I found, to make those reconnections automagic, is
https://github.com/kenoh/arandr-autoconfig.

I forked this,

    https://github.com/srgvg/arandr-autoconfig/commits/autops

and added "support for i3" which means I write out display numbers to an
.Xresources file,

```
➡  cat ~/.Xresources.d/i3

! ~/.Xresources.d/i3

! Make sure to include this file from ~/.Xresources by adding
! #include "~/.Xresources.d/i3"

! output index 0 is the primary monitor, hence i3.output.0 ==
i3.output.primary
! output index 1 is the first secondary monitor, hence i3.output.1 ==
i3.output.secondary


i3.output.0: DP2-2
i3.output.primary: DP2-2

i3.output.1: eDP1
i3.output.secondary: eDP1

```

and use them from .i3/config to set up default displays for my workspaces

    https://github.com/srgvg/dotfiles/blob/master/.i3/config#L56-L86

I'm also adding a shorted hash from the monitor's EDID info, to make
distinction of different monitors (with possibly different resolution) on
the same port.


HTH,


Serge

On Fri, 25 Jan 2019 at 21:08, Luí­s Moreira de Sousa <
dmarc-noreply@xxxxxxxxxxxxx> wrote:

Dear all,

just to conclude this thread. I find the suggestion by Layus to use arandr
the most convenient, not only to understand how xandr works, but in general
to probe foreign external displays. This ends up being the closest to what
I am used to with Unity (Display Settings programme).

Using xandr directly and mapping it to some mod key combinations is also
neat, but does not fit very my use case, where in most situations I do not
know beforehand the characteristics of the external display.

Thank you.

--
Luís

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, January 22, 2019 4:10 PM, Guillaume Maudoux (Layus) <
layus.on@xxxxxxxxx> wrote:

May I suggest using arandr in a first step. This gives a good GUI to
understand what theses xrandr commands do.



Other related posts: