I've recently got into using wmii, and didn't like the default behaviour that MODKEY+2 took you to a tag labelled '2', so attempted to change it. The behaviour I wanted was for it to change to the 2nd tag in the list of tags displayed in the bar.
What I put in the wmiirc was as follows:
Code:
for i in 1 2 3 4 5 6 7 8 9; do
cat <<!
Key $MODKEY-$i # Move to the numbered view
wmiir xwrite /ctl view $(wmiir ls /tag | grep -v sel | head -${i} | tail -1 | sed 's/\///g');
!
done
This command seems to work in the terminal, but not in my wmiirc file. Can anyone see either what's wrong with it, or a good way to debug it?
I have tried redirecting stderr to a file, but nothing is written to it, and I've also tried echoing "wmiir ls /tag", "wmiir ls /tag | grep -v sel", etc. for all the pipes, to a file, but again it doesn't seem to work.
Alternatively, can anyone point me to more up-to-date documentation for wmii?
http://wmii.suckless.org/guide says the most up-to-date is wmii.pdf (and links to it) which is dated 2009, and the version of wmii I have is dated 2010 and has a different format for the wmiirc file (which seems notorious for changing from release to release).
Thanks in advance