%
% anyremote configuration file for Aqualung management (AT-mode) 
% prerequisites: amixer/pactl utility
%

% STATUS unknown
% TODO aqualung do not save playlists
% XTEST no
% SOUND mixer
% ENV no
% DEF_PLAYER   

GuiAppName=Aqualung
GuiAppBinary=aqualung
GuiAppRun=echo 'P=`ps -ef|grep aqualung|grep -v grep|grep -v anyremote|grep -v nedit`; if [ "x$P" == "x" ]; then echo NOK; else echo OK; fi'|bash -f -s
GuiAppIcon=aqualung.png
GuiAppType=Application
GuiAppProtocols=AT
GuiAppDesc=Aqualung is an advanced music player. It plays audio CDs, internet radio streams and podcasts as well as soundfiles in just about any audio format and has the feature of inserting no gaps between adjacent tracks. 

[Protocol]=AT

(Init)=\
	Include($(CfgDir)/Utils/aliases-at.cfg);\
	Macro(SETUP_DEFAULT_MIXER);\
	Make(var,TwoWayComm,by_value,false);\
	Macro(CHECK_RFCOMM_DEVICE);

(Connect)=Make(mode,aqualung);

[Mode]=aqualung: default_player_at

% (EnterMode) by Utils/aliases-at.cfg

RUN_IF_NEED=Exec(P=`ps auxc|grep aqualung`; if [ "x$P" = "x" ]; then aqualung -s3 -o alsa -R -r 48000 & fi);
RUN_OR_QUIT=Exec(P=`ps auxc|grep aqualung`; if [ "x$P" = "x" ]; then aqualung -s3 -o alsa -R -r 48000 & else aqualung -Q; fi);
QUIT=Exec(aqualung -Q);

% Volume control by Utils/aliases-at.cfg
%1=Exec(aqualung -V -2)
%2=Exec(aqualung -V m)
%3=Exec(aqualung -V 2)

PLAY=Exec(aqualung --play -N 0);
PREV=Exec(aqualung -B)
NEXT=Exec(aqualung -F)
STOP=Exec(aqualung -T);
PAUSE=Exec(aqualung -U);

% override
* *=Macro(DEFAULT_HELP_NO_FF_RWD);

[ModeEnd]

[End]
