Hi,
because I couldn't find a getn-function in the API I tried to code it
myself. But there are some problems remaining. This is my code for
moving a window on the tag right to its current tag:
awful.key({ modkey }, "F2",
function (c)
local taks = screen[mouse.screen]:tags() --gets me the tag
table of the current screen
--beginning of counting tags
local takcount = 1
while taks[takcount+1] do
takcount = takcount + 1
end
--end of counting tags
local tak = awful.tag.getidx(c:tags()[1]) --getting the
active tag's number
awful.client.movetotag( (tak%takcount) + 1, c)
awful.tag.viewonly(tak)
c:raise()
end),
But there are two problems: First, my attempt of counting the tags
returns one tag more than I have and I don't understand why, second I
get an error in the line where I want to get the active tag's number:
"attempt to indes local 'c' (a nil value)"
Why does awesome can't access "c", I thougt, the active client is passed
over to the function as the "c" in "function (c)"?
Thanks in advance,
Manuel
--
To unsubscribe, send mail to [email protected].