Re: [wmii] next/previous view

From: Celti <celticmadman_AT_gmail.com>
Date: Tue, 13 Mar 2007 07:45:34 -0700

Interesting method of doing it. I ended up using awk:

fn next_tag {
        awk -v ctag'='`{wmiir read /tag/sel/ctl} '
                NR==1 {ntag=$0}
                $0==ctag {
                        ntag=getline?$0:ntag;
                        print ntag
                }'
}

fn Key-$MODKEY^comma { wmiir xwrite /ctl view `{ read_tags | next_tag} }
fn Key-$MODKEY^period { wmiir xwrite /ctl view `{ read_tags | sort -r
| next_tag} }

celti
Received on Tue Mar 13 2007 - 15:45:38 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:23:37 UTC