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 1680x1050 In terms of rules I personally find it more intuitive that monitor 0 is the primary monitor, rather than the leftmost one. It has a bit more consistency when moving between computers. The focusmon and tagmon issues that you noted are indeed there in a default setup and it's mainly noticeable when you have more than two monitors. In my three monitor setup I had monitors laid out like this: [1][0][2] I presume that's similar to what you get. What I ended up doing was simply swapping the +/- signs of the keyboard shortcuts. That said explicitly re-ordering the screens within dwm might be a useful solution for some. On Mon, Sep 30, 2019 at 8:34 AM Sebastian Sareyko <s...@setq.dk> wrote: > 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 and turns off my > > laptop screen. > > Sure, I could do something like that. But that's not what I want. I want > to use more than one screen at a time. Also that would not resolve the > issues in screen ordering with Xinerama. > > Thank you for the suggestion though. > > -- > Sebastian > > -- Stein Gunnar Bakkeby OpenBet Developer bakk...@gmail.com