This file is indexed.

/usr/share/anyremote/cfg-data/Server-mode/decibel.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
 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
%
% anyremote configuration file for decibel-audio-player (http://decibel.silent-blade.org/) (Server-mode)
% 

% STATUS nonstable
% TODO shuffle works strange;repeat do not works,RWD&FF works badly,playlist-add do not works,choose item from playlist do not works (seems these are decibel bugs)
% XTEST no
% SOUND mixer
% ENV no
% DEF_PLAYER   
% ALL_IN_ONE 
% MEDIACENTER audio

GuiAppName=Decibel
GuiAppBinary=decibel-audio-player
GuiAppRun=echo 'A=`ps -ef|grep decibel-audio-player|grep -v grep`; if [ "x$A" = "x" ]; then echo NOK; else echo OK; fi'|sh -s
GuiAppIcon=decibel-audio-player.png
GuiAppType=Application
GuiAppProtocols=Server
GuiAppDesc=Decibel Audio Player is a GTK+ open-source (GPL license) audio player designed for GNU/Linux, which aims at being very straightforward to use by mean of a very clean and user friendly interface.

[Protocol]=Server

(Init)=\
	Include($(CfgDir)/Utils/aliases-server.cfg);\
	Macro(TEST_QDBUS);\
	Macro(SETUP_DEFAULT_MIXER);\
	Macro(FBROWSER_IC_INIT);\
	Make(var,player_name,by_value,Decibel);\
	Include($(CfgDir)/Utils/aliases-server-player.cfg);\
	Make(var,cover_size,by_value,);\
	Make(var,decibel_layout,\
	     V=`$(CfgDir)/Utils/registry.sh $(TmpDir) get decibel_layout`;\
	     if [ "x$V" = "x" ]; then echo "5x1"; else echo $V; fi);

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

(Connect)=\
	Make(mode,decibel_$(decibel_layout));

[Mode]=decibel_general

% Volume control and 0-9,*,# assignments by Utils/aliases-server-player.cfg
%decibel-audio-player-remote volume 100

GETPOS=\
	Make(var,dap_pos,qdbus org.mpris.dap /Player org.freedesktop.MediaPlayer.PositionGet);

% 'decibel-audio-player-remote play' does not resume playing after pause
PLAY=\
	Exec(decibel-audio-player-remote pause);\
	Macro(DECIBEL_TITLE);\
	Timer(DECIBEL_TITLE,$(UpdateTimeout),0);

%RWD=Emulate(key,Left);
%FF=Emulate(key,Right);

RWD=\
	Macro(GETPOS);\
	Make(var,dap_pos_set,expr $(dap_pos) - 5000);\
	Exec(qdbus org.mpris.dap /Player org.freedesktop.MediaPlayer.PositionSet $(dap_pos_set));
	
FF=\
	Macro(GETPOS);\
	Make(var,dap_pos_set,expr $(dap_pos) + 5000);\
	Exec(qdbus org.mpris.dap /Player org.freedesktop.MediaPlayer.PositionSet $(dap_pos_set));
	
	
PREV=\
	Exec(decibel-audio-player-remote prev);\
	Macro(DECIBEL_TITLE);

STOP=\
	Timer(DECIBEL_TITLE,cancel);\
	Exec(decibel-audio-player-remote stop);

NEXT=\
	Exec(decibel-audio-player-remote next);\
	Macro(DECIBEL_TITLE);

PAUSE=\
	Exec(decibel-audio-player-remote pause);

RUN_IF_NEED=\
	Exec(P=`ps -ef|grep decibel-audio-player|grep -v grep`;\
	     if [ "x$P" = "x" ]; then decibel-audio-player 2> /dev/null & fi);

RUN_OR_QUIT=\
	Exec(P=`ps -ef|grep decibel-audio-player|grep -v grep`; \
	     if [ "x$P" = "x" ]; then \
	         decibel-audio-player 2> /dev/null & \
	     else \
	         pkill -f "python.*decibel-audio-player"; \
	     fi);

APP_QUIT=\
	Timer(APLAYER_TITLE,cancel);\
	Exec(pkill -f "python.*decibel-audio-player");

DECIBEL_TITLE_GENERAL=\
        Make(var,dap_artist,qdbus org.mpris.dap /Player org.freedesktop.MediaPlayer.GetMetadata|grep artist|sed 's/artist: //');\
        Make(var,dap_album,qdbus org.mpris.dap /Player org.freedesktop.MediaPlayer.GetMetadata|grep album|sed 's/album: //');\
        Make(var,dap_title,qdbus org.mpris.dap /Player org.freedesktop.MediaPlayer.GetMetadata|grep title|sed 's/title: //');\
	Set(title,$(dap_artist) - $(dap_album));\
	Set(status,$(dap_title));

Shuffle=\
	Exec(decibel-audio-player-remote shuffle);

Repeat=\
	Exec(P=`qdbus --literal org.mpris.dap /Player org.freedesktop.MediaPlayer.GetStatus|tr -d ' '|cut -f 4 -d ','|sed 's/]//'`; \
		if [ "x$P" = "x1" ]; \
		then \
		    qdbus org.mpris.dap /TrackList org.freedesktop.MediaPlayer.SetLoop true & \
		else \
		    qdbus org.mpris.dap /TrackList org.freedesktop.MediaPlayer.SetLoop false & \
		fi);

Playlist=\
	Make(mode,decibel_playlist);

APP_PLAY_STATUS=\
	Make(var,decibel_status,qdbus --literal org.mpris.dap /Player org.freedesktop.MediaPlayer.GetStatus|tr -d ','|tr -s ' '|cut -f 3 -d ' ');\
	Make(var,app_status,if [ "x$(decibel_status)" = "x0" ]; then echo playing; else echo paused; fi);

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

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

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

[ModeEnd]

[Mode]=decibel_3x4 : decibel_general, default_player

% (EnterMode) by Utils/aliases-server-player.cfg

APP_MENU=\
	Set(menu,replace,Playlist,Shuffle,Repeat,Layout 5x1,Layout 7x1,PowerMgmt);\
	Macro(ALLIN1MENU);\
	Macro(MEDIACENTER_MENU);

APP_POST_SETUP=\
	Make(var,decibel_layout,by_value,3x4);

DECIBEL_TITLE=\
	Macro(DECIBEL_TITLE_GENERAL);

[ModeEnd]

[Mode]=decibel_cover

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

APP_COVER=\
	Make(var,media_file,\
	     qdbus org.mpris.dap /Player org.freedesktop.MediaPlayer.GetMetadata|grep location|\
	     sed "s/^[^/]*\//\//;s/\/\/\//\//;s/'/'\\\''/g;s/\//\'\/\'/g;s/$/\'/g;s/^'\//\//");\
	Macro(DEFAULT_COVER);

[ModeEnd]

[Mode]=decibel_7x1 : decibel_general, default_player_7x1, decibel_cover

% (EnterMode) by Utils/aliases-server-player.cfg

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

APP_POST_SETUP=\
	Make(var,decibel_layout,by_value,7x1);

[ModeEnd]

[Mode]=decibel_5x1 : decibel_general, default_player_5x1, decibel_cover

% (EnterMode) by Utils/aliases-server-player.cfg

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

APP_POST_SETUP=\
	Make(var,decibel_layout,by_value,5x1);

% not timer	
PLAY=\
	Exec(decibel-audio-player-remote pause);\
	Macro(DECIBEL_TITLE);

APP_TITLE=\
	Macro(DECIBEL_TITLE);

[ModeEnd]

[Mode]=decibel_nobutton

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

[ModeEnd]

[Mode]=decibel_playlist : decibel_nobutton

%playlist-add do not works in Decibel v0.09	

(EnterMode)=\
	ExecAndSet(list,replace,Playlist,$(CfgDir)/Utils/getPlayList.sh org.mpris.dap);\
  	ExecAndSet(list,select,expr 1 + `qdbus org.mpris.decibel  /TrackList GetCurrentTrack`);\
	Set(menu,replace,Choose,Delete);
	
Push($$)=\
	Macro(Choose($$))
	
% no such method	
%Choose($$)=\
%	Exec(qdbus org.mpris.dap /TrackList PlayTrack `expr $(Index) - 1`);

Delete($$)=\
	Exec(qdbus org.mpris.dap /TrackList DelTrack `expr $(Index) - 1`);

Back($$)=\
	Set(list,close);\
	Make(mode,decibel_$(decibel_layout));

[ModeEnd]

%qdbus org.mpris.dap /Player  org.freedesktop.MediaPlayer.Stop

%UpdateMenu=Set(menu,replace,GoTo,Add,Go Home);
%Add to playlist=Macro(FBROWSER_IC_FILL_LIST);Macro(UpdateMenu);
%GoTo    =Macro(FBROWSER_IC_GO_TO);
%Go Home =Macro(FBROWSER_IC_GO_HOME);
%Push($$) use from aliases-server-fbrowser-v3i.cfg

%Add($$)=Set(list,close);\
%	Exec(decibel-audio-player-remote pl-add "$(fbrowser_dir)/$(Param)");\
%	Macro(APP_MENU);

[End]