marvelous ! this work fine (of course), thanks !


________________________________
De : Gregor Best <[email protected]>
À : [email protected]
Envoyé le : Dim 12 décembre 2010, 2h 28min 25s
Objet : Re: navigate into tags for dual screen

A user on #awesome had a similar request yesterday. That lead me to
writing the following code:

    for s = 1, screen.count() do
        awful.tag.attached_add_signal(s, "property::selected", function(tag)
        if not tag.selected then return end

        local idx = nil
        for i, v in pairs(screen[s]:tags()) do
            if v == tag then
                idx = i
                break
            end
        end
        if not idx then return end

        local c = client.focus
        for scr = 1, screen.count() do
            if scr ~= s then
                if screen[scr]:tags()[idx] ~= nil then
                    awful.tag.viewonly(screen[scr]:tags()[idx])
                end
            end
        end
        client.focus = c
    end)

Simply append it to your configuration. What it does is basically it
waits for a tag to be selected and then selects the tag with the same
index on all other screens (i.e. if you switch to tag #3 on screen 1,
all others screens are also switched to tag #3).

-- 
    $l="\n";$p=q-sub r{rand}sub c{((shift)**2+(shift)**2)<1}while(
    $i++<=$s){$t++if c r,r}die("Gregor Best, 0xDB9F9A7C, ".($t/$s*
    4).$l)-;$s+=ord$$|$_ for split //,$p;srand($s|$$);eval$p;die$@



      

Reply via email to