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

2019-10-24 Thread Sebastian Sareyko
> What I was thinking is that the original position of monitor 0 could be > recorded before the sorting, then shift / rotate the sorted list so that > the primary screen remains where it were originally, e.g. > > [0][1][2][3] --> shift once > [3][0][1][2] > ^_primary But that way the screens

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

2019-10-23 Thread Stein Gunnar Bakkeby
Hi Sebastian, I was thinking that if the primary screen, as returned by X, always end up as monitor 0, and you have, say, three additional screens (one on the left, two on the right), then you'd probably end up with a layout like: [1][0][2][3] ^_primary after your sorting the (previous) prim

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

2019-10-23 Thread Abdullah
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.gitAbdullah0X5CBC7BC7https://abdullah.todayOn 23 Oct 2019

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

2019-10-23 Thread Sebastian Sareyko
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 mov

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

2019-10-07 Thread Sebastian Sareyko
Here's an updated version of the patch that also takes the screens vertical positioning into account when sorting. -- Sebastian Sareyko >From fe6553c3d6e7e93aa74242cda0c33e05571147aa Mon Sep 17 00:00:00 2001 From: Sebastian Sareyko Date: Fri, 27 Sep 2019 12:32:41 +0200 Subject: [PATCH] Sort scr