this one is simple, but it seems very handy for me -- it allows fast switching
between two views: current and one that was active before.
paste this function
----
switch_view() {
ptag_tmp=`wmiir read /tag/sel/ctl`
wmiir xwrite /ctl view $1
PREV_TAG=$ptag_tmp
}
----
then replace all 'wmiir xwrite /ctl view $some_value' statements by
'switch_view $some_value'
and add key action:
----
#switch to previous active view
Key $MODKEY-z
if [ -n $PREV_TAG ]
then
switch_view $PREV_TAG
fi
----
--
With best regards,
Boo-boo
mailto: [EMAIL PROTECTED]