On Fri, Feb 29, 2008 at 1:17 AM, hiro <23hiro_AT_googlemail.com> wrote:
> > - Is it possible to rename an existing view?
> Yes.
Speaking of, I whipped this script up the other day:
#!/bin/sh
from="$1"
to="$2"
wmiir read /tag/$from/index |
awk -v to="$to" '
/^[^#]/ {print "wmiir xwrite /client/" $2 "/tags", to}
# floating clients should "just work"
/^[^#]/ && prev && $1!=prev {
dest = ($1==1) ? "toggle" : "right"
print "wmiir xwrite /tag/" to "/ctl send", $2, dest
}
/^[^#]/ {prev=$1}
' |
sh
I put it in ~/.wmii-3.5/mv, and then MOD-A, mv a b renames tag a to tag b.
-sqweek
Received on Fri Feb 29 2008 - 01:30:35 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:37:00 UTC