I have been trying to figure out a way to set up ~/.lircrc key events for multiple apps
without much success.
If I am running xmms (lanched through irexec) I am going to want play, pause, ff, rew, to
coorespond to xmms-lirc commands. However if I then launch gmplayer (from another irexec
line), these keys will need to be changed to activate mplayer events.
I think this is what the 'mode' parameter is for in the ~/.lircrc, but I cannot figure out
how that works. I would assume this is not an uncommon set-up for many of people using
LIRC, so it seems like there is a straightforward way to accomplish this.
All I need is for after an application is activated with irexec, lirc to switch to a
different set of key commands, and then switch back when the app exits.