Hi, 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 know how to move windows between my two screens, but I would like to > have the possibility of use both together for some programs.
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.
Greetings, Tobi
--
GPG-Key 0xE2BEA341 - signed/encrypted mail preferred
My, oh so small, homepage: http://portfolio16.de/
http://www.fli4l.de/ - ISDN- & DSL-Router on one disk!
Registered FLI4L-User #00000003
signature.asc
Description: Digital signature
