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

From: Sebastian Sareyko <>
Date: Wed, 23 Oct 2019 09:06:08 +0200

On Mon, Oct 21 2019, Stein Gunnar Bakkeby wrote:

> With this patch the monitors are numbered left to right. So unless I have
> misunderstood something if you are running only your laptop and you have
> some applications open, and you connect a screen, then whatever was on the
> laptop is now moved to the (new) left hand screen. Is that right?

This depends on where you position the new screen (e.g. via xrandr). If
it is placed to the right of your laptop screen no clients will be
moved. If you put the new screen to the left however, clients will be
disappear on the laptop screen and appear on the new screen.

> I was thinking that once the monitors are sorted one could also loop
> through the monitors starting from 0 to find the index of the primary
> monitor (can be assumed to be monitor 0 in the original list), then shift
> the list so that primary is 0 again.

Maybe I'm misunderstanding what you're saying, but this would just
confuse the ordering if the primary screen is not placed on the top left
of all screens.

Sebastian Sareyko
Received on Wed Oct 23 2019 - 09:06:08 CEST

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2019 - 09:12:27 CEST