%
% anyremote configuration file for xine management.
% prerequisites: amixer/pactl utility
%
% based on cfg-file from Domjan Svilkovic
%

% STATUS unknown
% XTEST yes
% SOUND mixer
% ENV no

GuiAppName=XineDVD
GuiAppBinary=xine
GuiAppRun=echo 'A=`ps -ef|grep xine|grep -v xinetd|grep -v grep|grep -v edit`; if [ "x$A" == "x" ]; then echo NOK; else echo OK; fi' | bash -f -s
GuiAppIcon=xine.png
GuiAppType=Example
GuiAppProtocols=AT
GuiAppDesc=Xine is a free multimedia player. It plays back CDs, DVDs, and VCDs. This configuration file tuned to play DVD with xine.

[Protocol]=AT

(Init)=Include($(CfgDir)/Utils/aliases-at.cfg);\
	Macro(SETUP_DEFAULT_MIXER);\
	Make(var,TwoWayComm,by_value,false);\
	Macro(CHECK_RFCOMM_DEVICE);
	
Answer=SendCKPD(E);Make(disconnect);
Cancel=Exec(killall xine);SendCKPD(E);

(Connect)=Exec(xine dvd://1 --fullscreen)

1=Macro(DEFAULT_VOLUME_DOWN)
2=Macro(DEFAULT_TOGGLE_MUTE)
3=Macro(DEFAULT_VOLUME_UP)

4=Emulate(key,Down) 
5=Emulate(key,Return) 
6=Emulate(key,Up)
 
7=Emulate(key,Left) 
8=Emulate(keydown,Shift_L,key,S,keyup,Shift_L) 
9=Emulate(key,Right'=)

* *=Exec(echo 'F="$HOME/.anyRemote/anyrem.hlp";echo "1 - Vol-   2 - Mute  3 - Vol+" > $F;echo "4 - Slower 5 - Play  6 - FF" >> $F;echo "7 - Prew   8 - Stop  9 - Next" >> $F;echo "* - Help   0 - Pause # - Quit" >> $F;echo "* N - start from chapter N (1-9)" >> $F);\
	Macro(SHOW_HELP);

* 1=Exec(xine dvd://1 --fullscreen) 
* 2=Exec(xine dvd://2 --fullscreen) 
* 3=Exec(xine dvd://3 --fullscreen) 
* 4=Exec(xine dvd://4 --fullscreen) 
* 5=Exec(xine dvd://5 --fullscreen) 
* 6=Exec(xine dvd://6 --fullscreen) 
* 7=Exec(xine dvd://7 --fullscreen) 
* 8=Exec(xine dvd://8 --fullscreen) 
* 9=Exec(xine dvd://9 --fullscreen) 
 
0=Emulate(key,space) 
#=Exec(killall xine)  

[End]
