Re: [wmii] questions and suggestions

From: Ruben Gonzalez Arnau <ruben_AT_websbarcelona.com>
Date: Thu, 28 Feb 2008 21:39:10 +0100

Davide Anchisi wrote:
> Hi,
>
> I have been using wmii since a couple of weeks, and I like it very much.
> I have a couple of questions and some suggestions to improve wmii.
>
> - Is it possible to move to next view using arrows?
>
>

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 Thu Feb 28 2008 - 21:40:02 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:36:58 UTC