From: Jarno S. <j_...@ya...> - 2009-08-04 22:45:23
|
On 04 Aug 2009 19:42:00 +0200 li...@ba... (Christoph Bartelmus) wrote: > Jarno Suni "j_...@ya..." wrote: > > > The documentation tells: "If mode is equal to the name of a client > > application this application will always start in this mode." I'll try to explain how I understand it. Let .lircrc be like following <clip> #!lircrcd begin prog = irexec button = somebutton config = xawtv & mode = xawtv # mode is explicitly declared here. # mode name equals to the name of the client application. end begin xawtv begin prog = xawtv button = otherbutton config = dosomethig end end xawtv </clip> By somebutton xawtv would start in xawtv mode and in case of an event it would check the xawtv block. > > I found > > out that you can enter the mode even if you don't explicitly tell so; I > > mean you don't have to start the application by lirc and define "mode = > > name" (where "name" is replaced by the client application's name) but > > just start the application somehow. > > I don't get what you are trying to say here. Let .lircrc be like following: <clip> begin prog = irexec button = somebutton config = xawtv & end begin xawtv begin prog = xawtv button = otherbutton config = dosomethig end end xawtv </clip> Now if xawtv is started by somebutton or e.g. in terminal, it will check the xawtv mode block in case of an event. > > However I found it works only when > > there is no "#! lircrcd" in the beginning of ".lircrc". Is that > > deliberate? > > Yes, as lircrcd maintains the current mode for all applications, the mode > is not changed when a new application starts. Ok, I see. > > Furthermore "flags = quit" does not work then, at least in > > the mode block. > > Provide a short example that shows this. <clip> begin vlc begin prog = vlc button = Vol+ config = key-vol-up flags = quit end end vlc begin prog = irexec button = Vol+ config = amixer set Master 10%+ end </clip> If you start vlc with lirc control interface and press Vol+ both configs are applied. I think "flags = quit" should prevent the global configuration from being applied. -- Jarno Suni - http://iki.fi/8/ Ole hyvä ja käytä XHTML-yhteensopivaa WWW-selainta. Please use a XHTML compliant web browser. |