Re: [hackers] [dwm][PATCH] Sort screens by horizontal origin
On Fri 27 Sep 2019 15:58,
Sebastian Sareyko <sl_AT_setq.dk> put forth the proposition:
> On Fri, Sep 27, 2019, at 15:36, Hiltjo Posthuma wrote:
>
> > Have you tried xrandr to reorder the screens? It should probably be solved in a
> > different way.
>
> Yeah, I tried that.
>
> Here's how I use xrandr to configure a simple three screen setup:
>
> xrandr --output eDP1 --mode 1920x1080 --left-of HDMI1 \
> --output HDMI1 --mode 1920x1080 --primary --left-of VGA1 \
> --output VGA1 --mode 1680x1050
>
> This should result in the following screen order: eDP1, HDMI1, VGA1
> Moving the mouse cursor works as expected even without my patch.
>
> The resulting screen order as returned by XineramaQueryScreens() however depends on wether VGA1 is plugged in at boot time or not. Right now, just after executing the above xrandr command, Xinerama tells me my screens are ordered as follows: HDMI1, eDP1, VGA1
>
> As far as I can tell this behavior is somehow dependent on the graphics driver.
>
> Kind regards,
> Sebastian
>
Can't you try to detect whether VGA1 is plugged in or not? I use
the following:
xrandr | grep -q "VGA1 connected" && xrandr --output LVDS1 --off \
--output VGA1 --primary --auto
If my VGA is connected then it makes it the primary and turns off my
laptop screen.
This is in a file sourced from my ~/.xinitrc.
-DW
Received on Fri Sep 27 2019 - 18:50:24 CEST
This archive was generated by hypermail 2.3.0
: Fri Sep 27 2019 - 19:48:25 CEST