On Mon, Dec 6, 2010 at 8:45 AM, Lord Myyl <[email protected]> wrote:
> I tried it though I can't manage to make it work.
>
> If I understood well, pressing either MOD-a, MOD-d, MOD-s or MOD-MAJ-s shift
> the view to left, right, down or up respectively ?
>
> I doesn't do anything in my awesome, am I missing something ?
Sorry, there was a typo in that code, and I have no idea where it came
from, since the original didn't have that.
Here it goes:
-----------------------------------------------------------
awful.key({ modkey, }, "a",
function ()
local allclients = client.get(mouse.screen)
for _,c in ipairs(allclients) do
if (floats(c) and c:isvisible()
and (not c.maximized_horizontal)
and (not c.minimized)
and (not c.fullscreen)) then
local g = c:geometry()
local sg = screen[c.screen].geometry
g.x = g.x + sg.width
c:geometry(g)
end
end
end),
awful.key({ modkey, }, "d",
function ()
local allclients = client.get(mouse.screen)
for _,c in ipairs(allclients) do
if (floats(c) and c:isvisible()
and (not c.maximized_horizontal)
and (not c.minimized)
and (not c.fullscreen)) then
local g = c:geometry()
local sg = screen[c.screen].geometry
g.x = g.x - sg.width
c:geometry(g)
end
end
end),
awful.key({ modkey, "Shift" }, "s",
function ()
local allclients = client.get(mouse.screen)
for _,c in ipairs(allclients) do
if (floats(c) and c:isvisible()
and (not c.maximized_vertical)
and (not c.minimized)
and (not c.fullscreen)) then
local g = c:geometry()
local sg = screen[c.screen].geometry
g.y = g.y + sg.height
c:geometry(g)
end
end
end),
awful.key({ modkey, }, "s",
function ()
local allclients = client.get(mouse.screen)
for _,c in ipairs(allclients) do
if (floats(c) and c:isvisible()
and (not c.maximized_vertical)
and (not c.minimized)
and (not c.fullscreen)) then
local g = c:geometry()
local sg = screen[c.screen].geometry
g.y = g.y - sg.height
c:geometry(g)
end
end
end),
-----------------------------------------------------------
Also, please notice that if no client falls out of the screen it
doesn't work. I don't know why, but the clients just move to the
border of the screen.
Any help on that would be nice :)
Cheers,
Vitor
--
To unsubscribe, send mail to [email protected].