I shouldn't do these things so late at night.

allview=vall
fn tagall {
        wmiir ls /client | grep -v sel |
        while(c=`{read})
                wmiir xwrite /client/$c/tags $*
}

fn Key-$MODKEY-F12 {
        if(! ~ $lastview $allview)
                lastview = `{wi_seltag}
tagall +^$allview wmiir xwrite /ctl view $allview
}
fn Key-$MODKEY-Shift-F12 {
        deltag -^$allview
        if(~ $allview `{wi_seltag})
                wmiir xwrite /ctl view $lastview
}

Maybe you even want something like

        LBarMenu-3-Delete $allview
        wmiir xwrite /ctl view $lastview

... though you'll get an extra view change in there.

--
Kris Maglione

The further you are from the facts of a situation,
the more you tend to believe news coverage of the
situation.

PGP: http://suckless.org/~jg/pubkey.pgp
SHA1 (pubkey.pgp) = 2d464f9dbb186bee6f4faa88e2f6c5802bcfd935

Reply via email to