Re: [wmii] questions and suggestions

From: Davide Anchisi <danchisi_AT_gmail.com>
Date: Fri, 29 Feb 2008 12:19:55 +0100

Great. Thank you.

2008/2/29, sqweek <sqweek_AT_gmail.com>:
> 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 - 12:19:56 UTC

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