[wmii] next and previous tag

From: Mirco Geremia <crittico_AT_gmail.com>
Date: Sat, 10 Feb 2007 10:31:47 +0100

Hi!
i was looking for something for jump to next (and previous) tag; i found this

$MODKEY-n)
        seltag="`wmiir read /tag/sel/ctl 2>/dev/null`";
        xwrite /ctl view `wmiir ls /tag | awk "/$seltag/ {getline; print}"`;;

but there's a problem: in /tag ther's also sel/ directory, and when $seltag becomes "sel" there are two sel/ dirs, and the script finds the the first sending /ctl view to the second sel.

ehm, i don't know if the problem (read "my english") is clear..

any ideas?

ola ;)
mirco
Received on Sat Feb 10 2007 - 10:27:17 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:20:39 UTC