| 1 |
% |
| 2 |
% anyremote configuration file for kscd management. |
| 3 |
% |
| 4 |
|
| 5 |
% STATUS stable |
| 6 |
% XTEST no |
| 7 |
% SOUND app |
| 8 |
% ENV no |
| 9 |
|
| 10 |
GuiAppName=Kscd |
| 11 |
GuiAppBinary=kscd |
| 12 |
GuiAppRun=echo 'A=`dcop 2> /dev/null|grep kscd`; if [ "x$A" == "x" ]; then echo NOK; else echo OK; fi' | bash -f -s |
| 13 |
GuiAppIcon=kscd.png |
| 14 |
GuiAppType=Application |
| 15 |
GuiAppProtocols=AT |
| 16 |
GuiAppDesc=KsCD is a small, fast, CDDB enabled audio CD player for UNIX platforms. This configuration file is for KsCD/KDE3. |
| 17 |
GuiAppVersion=echo 'V=`kscd -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 |
| 18 |
|
| 19 |
[Protocol]=AT |
| 20 |
|
| 21 |
Answer=Make(disconnect); |
| 22 |
Cancel=Exec(dcop kscd MainApplication-Interface quit); |
| 23 |
|
| 24 |
(Init)=Include($(CfgDir)/Utils/aliases-at.cfg);\ |
| 25 |
Make(var,TwoWayComm,by_value,false);\ |
| 26 |
Make(var,Device,by_value,/dev/rfcomm0);\ |
| 27 |
Exec(echo 'V=`kscd -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);\ |
| 28 |
|
| 29 |
(Connect)=Make(var,kscd_volume,by_value,-1);Exec(kscd) |
| 30 |
|
| 31 |
1=Exec(dcop kscd CDPlayer volumeDown) |
| 32 |
2=Make(var,kscd_volume,echo 'if [ "x$(kscd_volume)" == "x-1" ]; then dcop kscd CDPlayer getVolume; dcop kscd CDPlayer setVolume 0; else dcop kscd CDPlayer setVolume $(kscd_volume);echo "-1"; fi;'|bash -f -s) |
| 33 |
3=Exec(dcop kscd CDPlayer volumeUp) |
| 34 |
|
| 35 |
4=Exec(echo 'POS=`dcop kscd CDPlayer currentPosition`;NEWPOS=`expr $POS - 5000`;dcop kscd CDPlayer jumpTo $NEWPOS' | bash -f -s) |
| 36 |
5=Exec(dcop kscd CDPlayer play) |
| 37 |
6=Exec(echo 'POS=`dcop kscd CDPlayer currentPosition`;NEWPOS=`expr $POS + 5000`;dcop kscd CDPlayer jumpTo $NEWPOS' | bash -f -s) |
| 38 |
|
| 39 |
7=Exec(dcop kscd CDPlayer previous) |
| 40 |
8=Exec(dcop kscd CDPlayer stop) |
| 41 |
9=Exec(dcop kscd CDPlayer next) |
| 42 |
|
| 43 |
* *=Exec(echo 'F="$HOME/.anyRemote/anyrem.hlp";echo "1 - Vol- 2 - Mute 3 - Vol+"> $F;echo "2 - Rew 5 - Play 6 - FF">> $F;echo "7 - Prew 8 - Stop 9 - Next">> $F;echo "** Help 0 # - Quit">> $F;echo "*# Run/Quit">> $F;kdialog -passivepopup "`cat $F`" 7' |bash -f -s) |
| 44 |
* #=Exec(echo 'P=`dcop | grep kscd`; if [ "x$P" == "x" ]; then kscd& dcop kscd CDPlayer play; else dcop kscd MainApplication-Interface quit; fi' |bash -f -s) |
| 45 |
#=Exec(dcop kscd MainApplication-Interface quit) |
| 46 |
[End] |