From: Greg B. <gre...@zn...> - 2005-11-01 02:57:21
|
> Does each mode have a button to switch to another mode? Nope, I'm using the same button. Here's what works so far (I've started over): begin xmms begin button = red prog = irexec config = echo "going into mplayer mode" mode = mplayer flags = quit end end xmms begin mplayer begin button = red prog = irexec config = echo "going into firefox mode" flags = mode|quit end end mplayer # Default block (firefox mode) begin button = red prog = irexec config = echo "going into xmms mode" mode = xmms flags = quit end The key point is that the mode blocks have to be *before* the default block, and have to have quits in them to stop processing. This is because the default block will match in any mode. irexec seems to evaluate things in order of the file. So it goes through, checking for matches to the current mode. If it finds any it does what's in that mode then quits processing (key point). If it doesn't find any match, it ends up at the default block. I'm still not sure if the xmms and mplayer plugins are required to (and do) respect the mode blocks. ~gb |