Great. Thank you.

2008/2/29, sqweek <[EMAIL PROTECTED]>:
> On Fri, Feb 29, 2008 at 1:17 AM, hiro <[EMAIL PROTECTED]> 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
>
>

Reply via email to