|
From: Lucas F. <ljf...@pu...> - 2003-03-03 22:37:36
|
I have no idea if this will work, but you might try it. We have irexec start
off in the 'irexec mode'. When in 'irexec mode' irexec will receive a
command to start xine and irexec will enter 'xine mode'. Xine will
automatically start in 'xine mode'. When you quit xine, the irexec command
that originally started xine will not be run because irexec is in 'xine
mode'. Instead, the entries in the 'xine mode' will be run. The first entry
quits xine. The second entry puts irexec back into 'irexec mode' so the next
time you press ON_OFF it will start xine again. I've never actually tried
this, though.
This is really very clumsy. It would be nice if there was a toggle feature in
lirc that solved this problem.
begin irexec
begin # irexec start xine command
remote = Sony_DVD
prog = irexec
button = ON_OFF
config = xine --auto-play=d
mode = xine
# flags = once
end
end irexec
begin xine
begin
remote = Sony_DVD
button = ON_OFF
prog = xine
repeat = 0
config = Quit
end
begin
remote = Sony_DVD
button = ON_OFF
prog = irexec
mode = irexec
end
end xine
On Monday 03 March 2003 00:56, Adam Klein wrote:
> Well, I got the xine-ui to work with LIRC. However, I have a power button
> that I would like to toggle between on and off. In my .lircrc file i have:
>
|