Re: [hackers] [dwm][PATCH] Sort screens by horizontal origin

2019-10-02 Thread Sebastian Sareyko
On Tue, Oct 01 2019, Stein Gunnar Bakkeby wrote: > I think the primary monitor is always 0, so you could probably change the > order in xrandr as Hiltjo said by moving the --primary flag, e.g. > > xrandr --output eDP1 --mode 1920x1080 *--primary* --left-of HDMI1 \ >>--output HDMI1 --mode

Re: [hackers] [dwm][PATCH] Sort screens by horizontal origin

2019-10-01 Thread Stein Gunnar Bakkeby
I think the primary monitor is always 0, so you could probably change the order in xrandr as Hiltjo said by moving the --primary flag, e.g. xrandr --output eDP1 --mode 1920x1080 *--primary* --left-of HDMI1 \ >--output HDMI1 --mode 1920x1080 --left-of VGA1 \ >--output VGA1 --mode 16

Re: [hackers] [dwm][PATCH] Sort screens by horizontal origin

2019-09-29 Thread Sebastian Sareyko
On Fri, Sep 27, 2019, at 18:50, Dave Woodfall wrote: > 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

Re: [hackers] [dwm][PATCH] Sort screens by horizontal origin

2019-09-27 Thread Dave Woodfall
On Fri 27 Sep 2019 15:58, Sebastian Sareyko 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 confi

Re: [hackers] [dwm][PATCH] Sort screens by horizontal origin

2019-09-27 Thread Abdullah
I never faced a single problem with multihead with dwm. But I'll try this patch. I use xrandr. On 27/09, Hiltjo Posthuma wrote: On Fri, Sep 27, 2019 at 03:28:39PM +0200, Sebastian Sareyko wrote: Doing a multi-head setup using other means than Xinerama may lead to XineramaQueryScreens() return

Re: [hackers] [dwm][PATCH] Sort screens by horizontal origin

2019-09-27 Thread Sebastian Sareyko
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

Re: [hackers] [dwm][PATCH] Sort screens by horizontal origin

2019-09-27 Thread Hiltjo Posthuma
On Fri, Sep 27, 2019 at 03:28:39PM +0200, Sebastian Sareyko wrote: > Doing a multi-head setup using other means than Xinerama may lead to > XineramaQueryScreens() returning the screens in an order that does not > actually represent the actual screen layout. This in turn may result > in dwm using th

[hackers] [dwm][PATCH] Sort screens by horizontal origin

2019-09-27 Thread Sebastian Sareyko
Doing a multi-head setup using other means than Xinerama may lead to XineramaQueryScreens() returning the screens in an order that does not actually represent the actual screen layout. This in turn may result in dwm using the "wrong" monitor in monitor related functions (focusmon(), tagmon(), apply