2012-09-27 Manuel Kasser <[email protected]>:
> I experimented with this:
>
> --code
> awful.key({ modkey }, "F2",
> function (c)
> local taks = screen[mouse.screen]:tags() --get the tag table of
> the current screen
Almost, this is what I came up with and it seems to work:
-- Moves client one tag left
awful.key({ "Control", "Mod1", "Shift" }, "Left",
function (c)
local curidx = awful.tag.getidx(c:tags()[1])
local tagmax = #screen[mouse.screen]:tags()
if curidx == 1 then
c:tags({screen[mouse.screen]:tags()[tagmax]})
else
c:tags({screen[mouse.screen]:tags()[curidx - 1]})
end
awful.tag.viewprev() -- switch to tag
end)
Marco
--
To unsubscribe, send mail to [email protected].