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

From: Abdullah <abdullah_AT_abdullah.today>
Date: Wed, 23 Oct 2019 16:28:39 +0500
I don't remember if I patched my fork but dwm does it for me when I start my session. I have a script in xinitrc which checks using xrandr and if there are monitors more than one, it activates them on right side. 
https://github.com/Awan/dwm.git


Abdullah
0X5CBC7BC7
https://abdullah.today

On 23 Oct 2019 12:06 pm, Sebastian Sareyko <sl_AT_setq.dk> wrote:


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 - 13:28:39 CEST

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2019 - 14:12:28 CEST