On Fri, Oct 16, 2009 at 09:19:51PM +0200, Tobias Gruetzmacher wrote:
> On Fri, Oct 16, 2009 at 12:20:44PM +0200, Emilio J. Padron wrote:
> > is there any easy way to get a window spanning multiple screens?
> >
> I have this crude hack to maximize a window over all screens:
>
> awful.key({ modkey,}, "w",
> function (c)
> -- This assumes all screens next to each other...
> c.fullscreen = false
> c.maximized_horizontal = false
> c.maximized_vertical = false
> awful.client.floating.set(c, true)
> awful.client.movetoscreen(c, 1)
> local geo = c:geometry()
> geo.x = 0
> geo.y = 0
> geo.width = 0
> geo.height = 20000
> for s = 1, screen.count() do
> geo.height = math.min(geo.height, screen[s].geometry.height)
> geo.width = geo.width + screen[s].geometry.width
> end
> c:geometry(geo)
> end)
>
> This makes some assumptions over the screen setup, but works for me.
>
Hi,
I've just tried your hack and it works quite well :-)
It will be a good starting point for a more complete solution, adding
toggling capability (on/off), etc.
Thanks a lot,
Emilio
--
To unsubscribe, send mail to [email protected].