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
--start 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),
--end of code
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)"
Feel free to use and modify it or parts of it and if you can make it work (or
have another working solution), please tell me. ;)
Greetings
Manuel
--
To unsubscribe, send mail to [email protected].