/usr/share/anyremote/cfg-data/AT-mode/audacious.cfg is in anyremote-data 6.3.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | %
% anyremote configuration file for Audacious management (AT-mode)
%
% STATUS stable
% XTEST no
% SOUND app
% ENV no
% DEF_PLAYER
GuiAppName=Audacious
GuiAppBinary=audacious
GuiAppRun= P=`ps -ef|grep audacious|grep -v grep|grep -v anyremote|grep -v nedit`; if [ "x$P" = "x" ]; then echo NOK; else echo OK; fi
GuiAppIcon=audacious.png
GuiAppType=Application
GuiAppProtocols=AT
GuiAppDesc=Audacious is a fork of Beep Media Player (BMP) 0.9.7.1, which in itself was based on XMMS1.
[Protocol]=AT
(Init)=\
Include($(CfgDir)/Utils/aliases-at.cfg);\
Make(var,TwoWayComm,by_value,false);\
Macro(CHECK_RFCOMM_DEVICE);
(Connect)=\
Make(mode,audacious);
[Mode]=audacious : default_player_at
(EnterMode)=\
Macro(SETUP_DEFAULT_POWER_MANAGEMENT);\
Macro(RUN_IF_NEED);\
Make(var,au_volume,by_value,-1);
(Disconnect)=\
Macro(STOP);
%InCall($$)=\
% Macro(STOP);\
% Exec(notify-send -t 5000 "Call from $(Param)");\
% Make(remote,off);
%EndCall($$)=\
% Make(remote,on);\
% Macro(PLAY);
RUN_IF_NEED=\
Exec(P=`ps -ef|grep audacious|grep -v grep|grep -v anyremote|grep -v nedit`; if [ "x$P" = "x" ]; then audacious& fi);
RUN_OR_QUIT=\
Exec(P=`ps -ef|grep audacious|grep -v grep|grep -v anyremote|grep -v nedit`; if [ "x$P" = "x" ]; then audacious& else audtool shutdown; fi);
QUIT=\
Exec(audtool shutdown);
% Override
1=Exec(V=`audtool get-volume`;audtool set-volume `expr $V - 5`)
2=Make(var,au_volume,if [ "x$(au_volume)" = "x-1" ]; then audtool get-volume;audtool set-volume 0; else audtool set-volume $(au_volume); echo "-1"; fi)
3=Exec(V=`audtool get-volume`;audtool set-volume `expr $V + 5`)
PLAY=Exec(audacious -t);
RWD=Exec(audtool playback-seek-relative -5);
FF=Exec(audtool playback-seek-relative 5);
PREV=Exec(audacious -r);
NEXT=Exec(audacious -f);
STOP=Exec(audacious -s);
PAUSE=Exec(audacious -t);
[ModeEnd]
[End]
|