Re: [wmii] questions and suggestions

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

Thanks for the code, but how do use it? It does not seem to have the
same syntax as wmiirc.
I am used to shell scripting, but I am pretty new to wmii.

Thank you,

    Davide

> Yes, I am using John Galt's cycle view using arrows instead.fn next_tag
>
>
> fn next_tag {
> awk -v curtag'='`{wmiir read /tag/sel/ctl | head -1} '
> NR==1 {first = $0}
> $0==curtag { if(getline) print $0; else print first;
> exit }'
> }
>
> fn Key-$MODKEY-Right {
> wmiir xwrite /ctl view `{ wi_tags | next_tag}
> }
>
> fn Key-$MODKEY-Left {
> wmiir xwrite /ctl view `{ wi_tags | tail -r | next_tag}
> }
>
> # up & down
> fn Key-$MODKEY-Up {
> wmiir xwrite /tag/sel/ctl select up
> }
> fn Key-$MODKEY-Down {
> wmiir xwrite /tag/sel/ctl select down
> }
>
>
> See you!
>
> --
> Ruben Gonzalez Arnau
> GPG key: 0x08AF5CD4 http://www.websbarcelona.com/ruben/0x08AF5CD4.asc
>
>
>
Received on Fri Feb 29 2008 - 12:19:33 UTC

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