This file is indexed.

/usr/share/anyremote/cfg-data/Server-mode/audacious.cfg is in anyremote-data 6.5-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
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
%
% anyremote configuration file for Audacious management (Server-mode)
% 
% Thanks to Eugeny Tereshkov for corrections and advices
%

% STATUS stable
% XTEST no
% SOUND app
% ENV no
% DEF_PLAYER   
% ALL_IN_ONE 
% MEDIACENTER audio

GuiAppName=Audacious
GuiAppBinary=audacious
GuiAppRun=echo 'P=`ps -ef|grep audacious|grep -v grep|grep -v anyremote|grep -v edit`; if [ "x$P" = "x" ]; then echo NOK; else echo OK; fi'|sh -s
GuiAppIcon=audacious.png
GuiAppType=Application
GuiAppProtocols=Server
GuiAppDesc=Audacious is a fork of Beep Media Player (BMP) 0.9.7.1, which in itself was based on XMMS1.

%audtool current-song-filename

[Protocol]=Server

(Init)=\
	Include($(CfgDir)/Utils/aliases-server.cfg);\
        Include($(CfgDir)/Utils/aliases-server-fbrowser-v3i.cfg);\
	Exec(P=`which audtool 2> /dev/null|grep audtool|grep -v no|wc -l|tr -d " "`;\
	     if [ "x$P" = "x1" ]; then true; else $(CfgDir)/Utils/message.sh "ERROR: audtool package is not installed"; fi);\
	Make(var,player_name,by_value,Audacious);\
	Make(var,cover_size,by_value,);\
	Macro(FBROWSER_IC_INIT);\
	Include($(CfgDir)/Utils/aliases-server-player.cfg);\
	Make(var,audacious_layout,\
	     V=`$(CfgDir)/Utils/registry.sh $(TmpDir) get audacious_layout`;\
	     if [ "x$V" = "x" ]; then echo "5x1"; else echo $V; fi);

(Exit)=\
	Macro(FBROWSER_IC_EXIT);\
	Exec($(CfgDir)/Utils/registry.sh $(TmpDir) set audacious_layout $(audacious_layout));

(Connect)=\
	Make(mode,audacious_$(audacious_layout));

[Mode]=audacious_general

PLAY_ONLY=\
	ExecAndSet(title,audacious -t;audtool current-song|sed 's/%20/ /g');
	
PLAY=\
	Macro(PLAY_ONLY);\
	Timer(AUDACIOUS_TITLE,$(UpdateTimeout),0)
	
RWD=\
	Exec(audtool playback-seek-relative -5);

FF=\
	Exec(audtool playback-seek-relative 5);

PREV=\
	ExecAndSet(title,audacious -r;audtool current-song|sed 's/%20/ /g');\
	Macro(AUDACIOUS_TITLE);

STOP=\
	Macro(AUDACIOUS_TITLE_CANCEL);\
	Exec(audacious -s);\
	Set(title,);\
	Set(status,);

NEXT=\
	ExecAndSet(title,audacious -f;audtool current-song|sed 's/%20/ /g');\
	Macro(AUDACIOUS_TITLE);

PAUSE=\
	Exec(audacious -t);

APP_QUIT=\
	Macro(AUDACIOUS_TITLE_CANCEL);\
	Exec(audtool shutdown);

(ExitMode)=\
	Macro(AUDACIOUS_TITLE_CANCEL);

% custom volume control
AUDACIOUS_VOL-=\
	Exec(V=`audtool get-volume`;audtool set-volume `expr $V - 5`)

AUDACIOUS_MUTE=\
	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);

AUDACIOUS_VOL+=\
	Exec(V=`audtool get-volume`;audtool set-volume `expr $V + 5`)

VOL-=Macro(AUDACIOUS_VOL-)
VOL+=Macro(AUDACIOUS_VOL+)

Shuffle=\
	Exec(audtool playlist-shuffle-toggle);
	
Repeat=\
	Exec(audtool playlist-repeat-toggle);
	
Files=\
	Make(mode,audacious_filebrowser);

Playlist=\
	Make(mode,audacious_playlist);

RUN_IF_NEED=\
	Exec(P=`ps auxc|grep audacious`; if [ "x$P" = "x" ]; then audacious -e& fi);\
	Exec($(CfgDir)/Utils/run-or-switch-to.sh -switch audacious);\
	Macro(AUDACIOUS_TITLE_CHECK);

RUN_OR_QUIT=\
	Exec(P=`ps auxc|grep audacious`;if [ "x$P" = "x" ]; then audacious -e& else audtool shutdown; fi);

AUDACIOUS_TITLE_GENERAL=\
	ExecAndSet(title,audtool current-song|sed 's/%20/ /g');

AUDACIOUS_TITLE_CHECK=\
	Macro(AUDACIOUS_START_TIMER,audtool playback-playing;echo $?);\

% AUDACIOUS_TITLE must be defined in child modes
AUDACIOUS_START_TIMER=\
	Timer(AUDACIOUS_TITLE,$(UpdateTimeout),0)
	
AUDACIOUS_TITLE_CANCEL=\
	Timer(AUDACIOUS_TITLE,cancel);

APP_PLAY_STATUS=\
	Make(var,audacious_status,audtool playback-status);\
	Make(var,app_status,if [ "x$(audacious_status)" = "xplaying" ]; then echo playing; else echo paused; fi);

Layout 3x4=\
	Make(mode,audacious_3x4);

Layout 7x1=\
	Make(mode,audacious_7x1);

Layout 5x1=\
	Make(mode,audacious_5x1);

[ModeEnd]

[Mode]=audacious_3x4 : audacious_general,default_player

% (EnterMode) by Utils/aliases-server-player.cfg
	
APP_POST_SETUP=\
	Make(var,au_volume,by_value,-1);\
	Make(var,audacious_layout,by_value,3x4);

APP_MENU=\
	Set(menu,replace,Files,Playlist,Shuffle,Repeat,Layout 7x1,Layout 5x1,Run/Quit,PowerMgmt);\
	Macro(ALLIN1MENU);\
	Macro(MEDIACENTER_MENU);
	
% custom volume control
1=Macro(AUDACIOUS_VOL-)
2=Macro(AUDACIOUS_MUTE)
3=Macro(AUDACIOUS_VOL+)

AUDACIOUS_TITLE=\
	Macro(AUDACIOUS_TITLE_GENERAL);

[ModeEnd]

[Mode]=audacious_cover

% Next Cover,Previous Cover,Update Cover by Utils/aliases-server-player.cfg
% PowerMgmt by Utils/aliases-server.cfg

Mute=\
	Macro(AUDACIOUS_MUTE);

AUDACIOUS_TITLE=\
	Macro(AUDACIOUS_TITLE_GENERAL);\
	Macro(APP_COVER, if [ "x$(cover_size)" = "x" ]; then echo 1; else echo 0; fi);

APP_COVER=\
	Make(var,media_file,\
	     audtool current-song-tuple-data file-path|\
	     sed "s/file:\/\///;s/'/'\\\''/g;s/\//\'\/\'/g;s/\/'$/\//g;s/^'\//\//");\
	Macro(DEFAULT_COVER);
	
Help=\
	Macro(DEFAULT_HELP);

[ModeEnd]

[Mode]=audacious_7x1 : audacious_general,default_player_7x1,audacious_cover

% (EnterMode) by Utils/aliases-server-player.cfg
APP_MENU=\
	Set(menu,replace,Files,Playlist,Mute,Next Cover,Previous Cover,Update Cover,Layout 3x4,Layout 5x1,Help,PowerMgmt);\
	Macro(ALLIN1MENU);\
	Macro(MEDIACENTER_MENU);

APP_POST_SETUP=\
	Make(var,au_volume,by_value,-1);\
	Make(var,audacious_layout,by_value,7x1);

[ModeEnd]

[Mode]=audacious_5x1 : audacious_general,default_player_5x1,audacious_cover

PLAY=\
	Macro(PLAY_ONLY);
	
% (EnterMode) by Utils/aliases-server-player.cfg
APP_MENU=\
	Set(menu,replace,Files,Playlist,Mute,Next Cover,Previous Cover,Update Cover,Layout 3x4,Layout 7x1,Help,PowerMgmt);\
	Macro(ALLIN1MENU);\
	Macro(MEDIACENTER_MENU);

APP_POST_SETUP=\
	Make(var,au_volume,by_value,-1);\
	Make(var,audacious_layout,by_value,5x1);

APP_TITLE=\
	Macro(AUDACIOUS_TITLE);

[ModeEnd]

[Mode]=audacious_playlist

(EnterMode)=\
	ExecAndSet(list,replace,Playlist,\
	           audtool playlist-display|tr -s  ' '|cut -f 2 -d "|"|grep -v " tracks."|grep -v "Total length"|\
		   sed 's/%20/ /g;s/,/\r/g;s/$/,/;s/(/-/g;s/)/-/g');\
	Set(menu,replace,Choose,Remove,Remove All);

(ExitMode)=\
	Set(list,close);\
	Macro(AUDACIOUS_TITLE_CHECK);

Back($$)=\
	Make(mode,audacious_$(audacious_layout));
	
Choose($$)=\
	Exec(audtool playlist-jump $(Index));
	
Push($$)=\
	Macro(Choose($$));
	
Remove($$)=\
	Exec(audtool playlist-delete $(Index));\
	ExecAndSet(list,replace,Playlist,\
	           sleep 1;audtool playlist-display|tr -s  ' '|cut -f 2 -d "|"|grep -v " tracks."|grep -v "Total length"|\
		   sed 's/%20/ /g;s/,/\r/g;s/$/,/;s/(/-/g;s/)/-/g');\

Remove All($$)=\
	ExecAndSet(list,clear);\
	Exec(audtool playlist-clear);

[ModeEnd]

[Mode]=audacious_nobutton

% bug-prone :)
1=Make(mode,audacious_$(audacious_layout));	
2=Make(mode,audacious_$(audacious_layout));	
3=Make(mode,audacious_$(audacious_layout));	
4=Make(mode,audacious_$(audacious_layout));	
5=Make(mode,audacious_$(audacious_layout));	
6=Make(mode,audacious_$(audacious_layout));	
7=Make(mode,audacious_$(audacious_layout));	
8=Make(mode,audacious_$(audacious_layout));	
9=Make(mode,audacious_$(audacious_layout));	
*=Make(mode,audacious_$(audacious_layout));	
0=Make(mode,audacious_$(audacious_layout));	
#=Make(mode,audacious_$(audacious_layout));	

[ModeEnd]

% rely on $(audacious_layout) variable
[Mode]=audacious_filebrowser:audacious_nobutton

(EnterMode)=\
	Macro(FBROWSER_IC_FILL_LIST);\
	Macro(UpdateMenu);

(ExitMode)=\
	Set(list,close);\
	Macro(AUDACIOUS_TITLE_CHECK);

UpdateMenu=\
	Set(menu,replace,GoTo,Add,Go Home);

GoTo($$)=\
	Macro(FBROWSER_IC_GO_TO);
	
Go Home($$)=\
	Macro(FBROWSER_IC_GO_HOME);
	
%Push($$) use from aliases-server-fbrowser-v3i.cfg

Add($$)=\
	Exec(audtool playlist-addurl "$(fbrowser_dir)"/$(Param));

Back($$)=\
	Make(mode,audacious_$(audacious_layout));

[ModeEnd]

[End]