Debian Codegraph @

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

raw
1 %
2 % anyremote configuration file for Noatun management.
3 % prerequisites: KDE, Noatun
4 % playlist should be already created !
5 %
6
7 % STATUS stable
8 % XTEST no
9 % SOUND app
10 % ENV no
11
12 GuiAppName=Noatun
13 GuiAppBinary=noatun
14 GuiAppRun=echo 'A=`dcop 2> /dev/null|grep noatun`; if [ "x$A" == "x" ]; then echo NOK; else echo OK; fi'|bash -f -s
15 GuiAppIcon=noatun.png
16 GuiAppType=Application
17 GuiAppProtocols=AT
18 GuiAppDesc=The super-modular media player for KDE.
19 GuiAppVersion=echo 'V=`noatun -v|grep KDE|tr -d " "|cut -f 2 -d ":"|cut -f 1 -d "."`; if [ "x$V" == "x3" ]; then echo OK; else echo NOK; fi'|bash -f -s
20
21 % 1 - vol-
22 % 2 - mute
23 % 3 - vol+
24 % 4 - rewind
25 % 5 - play
26 % 6 - fast forward
27 % 7 - previous
28 % 8 - stop
29 % 9 - next
30 % 0 - pause
31 % # - quit from noatun
32
33 [Protocol]=AT
34
35 Answer=Make(disconnect);
36 Cancel=Exec(dcop noatun MainApplication-Interface quit);
37
38 (Init)=Include($(CfgDir)/Utils/aliases-at.cfg);\
39 Make(var,TwoWayComm,by_value,false);\
40 Make(var,Device,by_value,/dev/rfcomm0);\
41 Exec(echo 'V=`amarok -v|grep KDE|tr -d " "|cut -f 2 -d ":"|cut -f 1 -d "."`; if [ "x$V" == "x4" ]; then $(CfgDir)/Utils/message.sh "ERROR: this configuration file is for KDE3"; fi'|bash -f -s);
42
43 (Connect) =Exec(noatun)
44 (Disconnect)=Exec(dcop noatun Noatun playpause;kdialog --msgbox "Disconnected ... Set to pause")
45
46
47 1=Exec(dcop noatun Noatun volumeDown)
48 2=Exec(dcop noatun Noatun toggleMute)
49 3=Exec(dcop noatun Noatun volumeUp)
50
51 4=Exec(echo 'P=`dcop noatun Noatun position`;N=`expr $P - 5000`;dcop noatun Noatun skipTo $N'|bash -f -s)
52 5=Exec(dcop noatun Noatun play)
53 6=Exec(echo 'P=`dcop noatun Noatun position`;N=`expr $P + 5000`;dcop noatun Noatun skipTo $N'|bash -f -s)
54
55 7=Exec(dcop noatun Noatun back)
56 8=Exec(dcop noatun Noatun stop)
57 9=Exec(dcop noatun Noatun forward)
58
59 * *=Exec(echo 'F="$HOME/.anyRemote/anyrem.hlp";echo "1 - Vol- 2 - Mute 3 - Vol+" > $F;echo "4 - Rew 5 - Play 6 - FF" >> $F;echo "7 - Prew 8 - Stop 9 - Next" >> $F;echo "** - Help 0 - Pause # - Quit" >> $F;echo "*# - Run/Quit" >> $F;kdialog -passivepopup "`cat $F`" 7' |bash -f -s)
60 * #=Exec(echo 'P=`dcop|grep noatun`; if [ "x$P" == "x" ]; then noatun& else dcop noatun MainApplication-Interface quit; fi' |bash -f -s)
61 0=Exec(dcop noatun Noatun playpause)
62 #=Exec(dcop noatun MainApplication-Interface quit)
63
64 [End]