[wmii] Cycle views

From: Carlos Eduardo Moreira dos Santos <cems_AT_cemshost.com.br>
Date: Thu, 19 Mar 2009 20:04:14 -0300

Following http://wmii.suckless.org/scripts_n_snips/code_snippets I
created the file ~/.wmii-3.5/rc.wmii.local with the following:

MODKEY=Mod1
fn Action-overridekeys {
    fn next_tag {
        awk -v curtag'='`{wmiir read /tag/sel/ctl | sed 1q} '
                NR==1 {first = $0}
                $0==curtag { if(getline) print $0; else print first; exit }'
    }
    fn Key-$MODKEY-n {
            wmiir xwrite /ctl view `{ read_tags | next_tag}
    }
    fn Key-$MODKEY-b {
            wmiir xwrite /ctl view `{ read_tags | tail -r | next_tag}
    }
}

and gave it perms 755. However, after running this action, the keys
still do nothing. I also tried the action wmiirc without success. What
else should I do?

Thank you
Received on Thu Mar 19 2009 - 23:04:14 UTC

This archive was generated by hypermail 2.2.0 : Thu Mar 19 2009 - 23:24:09 UTC