Debian Codegraph @

cfg-data/obsoleted/AT-mode/xmms.cfg

raw
1 %
2 % anyremote configuration file for XMMS management.
3 % prerequisites: xmmsctrl package
4 %
5
6 % STATUS stable
7 % XTEST no
8 % SOUND app
9 % ENV no
10
11 GuiAppName=XMMS
12 GuiAppBinary=xmms
13 GuiAppRun=echo 'P=`ps -ef|grep xmms|grep -v xmms2|grep -v grep|grep -v anyremote|grep -v edit`; if [ "x$P" == "x" ]; then echo NOK; else echo OK; fi' | bash -f -s
14 GuiAppIcon=xmms.png
15 GuiAppType=Application
16 GuiAppProtocols=AT
17 GuiAppDesc=XMMS is a multimedia player for unix systems. XMMS stands for X MultiMedia System and can play media files such as MP3, MOD's, WAV and others with the use of Input plugins.
18
19 [Protocol]=AT
20
21 (Init)=\
22 Include($(CfgDir)/Utils/aliases-at.cfg);\
23 Make(var,TwoWayComm,by_value,false);\
24 Macro(CHECK_RFCOMM_DEVICE);\
25 Exec(echo 'P=`which xmmsctrl|grep xmmsctrl|grep -v no|wc -l|tr -d " "`;if [ "x$P" == "x1" ]; then true; else $(CfgDir)/Utils/message.sh "ERROR: xmmsctrl package is not installed"; fi'|bash -f -s);
26
27 (Connect)=\
28 Make(var,xmms_volume,by_value,-1);\
29 Exec(sh -c "if xmmsctrl running;then xmmsctrl play;else xmmsctrl launch; fi");
30
31 (Disconnect)=\
32 Exec(xmmsctrl pause);
33
34 Answer=\
35 Make(disconnect);
36
37 Cancel=\
38 Exec(xmmsctrl quit);\
39 Make(exit);
40
41 %InCall($$)=\
42 % Exec(xmmsctrl pause;kdialog --msgbox "$(Param)");\
43 % Make(remote,off);
44
45 %EndCall($$)=\
46 % Make(remote,on);\
47 % Exec(xmmsctrl play)
48
49 1=Exec(xmmsctrl vol -5)
50 2=Make(var,xmms_volume,echo 'if [ "x$(xmms_volume)" == "x-1" ]; then xmmsctrl print %v; xmmsctrl vol 0; else xmmsctrl vol $(xmms_volume); echo "-1"; fi;'|bash -f -s)
51 3=Exec(xmmsctrl vol +5)
52
53 4=Exec(xmmsctrl time -10)
54 5=Exec(sh -c "if xmmsctrl playing;then xmmsctrl stop;else xmmsctrl play; fi")
55 6=Exec(xmmsctrl time +10)
56
57 7=Exec(xmmsctrl prev)
58 8=Exec(xmmsctrl stop)
59 9=Exec(xmmsctrl next)
60
61 * *=Exec(echo 'F="$HOME/.anyRemote/anyrem.hlp";echo "1 - Vol- 2 - Mute 3 - Vol+" > $F;echo "4 - Rew 5 - Play/Stop 6 - FF" >> $F;echo "7 - Prev 8 - Stop 9 - Next" >> $F;echo "* * - Help 0 - Pause # - Quit" >> $F;echo "* # - Run/Quit" >> $F;kdialog -passivepopup "`cat $F`" 7' |bash -f -s)
62 * #=Exec(sh -c "if xmmsctrl running;then xmmsctrl quit;else xmmsctrl launch; fi")
63 0=Exec(xmmsctrl pause)
64 #=Exec(xmmsctrl quit)
65
66 [End]