Hi all,

I don't like that awesome has tags separate to screens, but instead I'd
like to have it the other way round.  For most keybindings I've managed
to get what I want, so for example Mod-<num> switches to the <num>-th
tag on each connected screen.  Basically the binding calls

 function switch_to_tag_by_number (i)
    for s = 1, screen.count() do
       if tags[s][i] then
          awful.tag.viewonly(tags[s][i])
       end
    end
 end

with providing the number.

But I don't get it for mouse clicks on the taglist where the bound
function gets a real tag instead of the tag's number.  How do I get the
number of a tag?

I tried to call

 function switch_to_tag (tag)
    for s = 1, screen.count() do
       if tags[s][tag.name] then
          awful.tag.viewonly(tags[s][tag.name])
       end
    end
 end

but it seems that tag.name is not the same as the number/index in the
screen-tags table...

I use a slightly modified default rc.lua.

Bye,
Tassilo


-- 
To unsubscribe, send mail to [email protected].

Reply via email to