Re: [wmii] Code Snippet view all clients on specific tag (idea)

From: Kris Maglione <jg_AT_suckless.org>
Date: Sat, 22 Mar 2008 13:26:13 -0400

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
Received on Sat Mar 22 2008 - 18:26:53 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:38:41 UTC