Hi Uli,

On Wed 30.10.2013 18:00:33, Uli Schlachter wrote:
> On 30.10.2013 03:37, Andre Klärner wrote:
> > as my setup at home is a bit more complex than the one on the go and at
> > work I had to modify the xrandr screen table function a bit. To not keep it
> > just for me I updated the wiki page for it.
> > 
> > https://awesome.naquadah.org/wiki/XRandR_Screen_Table
> > 
> > I'd be grateful if anyone using the script might try out the updated
> > version and tell me if and what mistakes I made.
> 
> I might be missing something, but I think that this code (copied from that 
> wiki
> page):
> 
>  screens = xrandr_screens()
>  client.focus.screen = screens["VGA"]
> 
> is equivalent to this code:
> 
>  client.focus.screen = screen.VGA.index

This doesn't work for me. I tried with v3.4.15 and it first struggeled with
the output name "DP-1", and on my laptop with an output named "LVDS" it
also returned nothing at all.

I tried to find the code responsible for creating the screens array, but it
seems like I am not a really good C-reader. But if such a feature was
available it would definately ease my day.

> No idea if this feature is documented anywhere, but I think I just found a
> volunteer to mention this in the wiki.

If it is documented I couldn't find it. It might also be, that this has
been introduced far after the wiki page was created.
>
> Of course, this does not work if awesome is not using RANDR for querying the
> monitor configuration. Also, there doesn't seem to be a way for querying the
> list of available screens.

Well, I assume that this pretty obvious. I think pure Xinerama wouldn't
work with this solution, but in this case the screen order is pretty static
anyway. AFAIK RANDR is the only way to change the screen layout during the
runtime of the xserver.

Regards, Andre

-- 
Andre Klärner

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to