/usr/share/anyremote/cfg-data/Server-mode/exaile.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 | %
% anyremote configuration file for Exaile management (Server-mode)
% prerequisites: amixer/pactl utility
%
% STATUS stable
% XTEST no
% SOUND mixer
% ENV no
% DEF_PLAYER
% ALL_IN_ONE
% MEDIACENTER audio
GuiAppName=Exaile
GuiAppBinary=exaile
GuiAppRun=echo 'P=`ps -ef|grep exaile |grep -v grep|grep -v anyremote|grep -v nedit`; if [ "x$P" = "x" ]; then echo NOK; else echo OK; fi'|sh -s
GuiAppIcon=exaile.png
GuiAppType=Application
GuiAppProtocols=Server
GuiAppDesc=Exaile is a music player aiming to be similar to KDE's Amarok, but for GTK+ and written in Python.
[Protocol]=Server
(Init)=\
Include($(CfgDir)/Utils/aliases-server.cfg);\
Macro(SETUP_DEFAULT_MIXER);\
Macro(TEST_QDBUS);\
Include($(CfgDir)/Utils/aliases-server-fbrowser-v3i.cfg);\
Macro(FBROWSER_IC_INIT);\
Make(var,player_name,by_value,Exaile);\
Include($(CfgDir)/Utils/aliases-server-player.cfg);\
Make(var,exaile_layout,by_value,5x1);
(Connect)=\
Make(mode,exaile_$(exaile_layout));
(Exit)=\
Macro(FBROWSER_IC_EXIT);
[Mode]=exaile_general
EXAILE_SETTITLE_GENERAL=\
Make(var,exaile_artist,exaile --get-artist);\
Make(var,exaile_album,exaile --get-album);\
Make(var,exaile_title,exaile --get-title);\
Set(title,$(exaile_artist) - $(exaile_album));\
Set(status,$(exaile_title));
Play CD=\
Exec(exaile --play-cd);\
Timer(EXAILE_SETTITLE,$(UpdateTimeout),0);
Files=\
Timer(EXAILE_SETTITLE,cancel);\
Make(mode,exaile_filebrowser);
EXAILE_SETPOS=\
Exec(qdbus org.exaile.Exaile /org/exaile/Exaile Seek $(exaile_pos));
PLAY_ONLY=\
Exec(exaile --play);\
Macro(EXAILE_SETTITLE);
PLAY=\
Macro(PLAY_ONLY);\
Timer(EXAILE_SETTITLE,5,0);
RWD=\
Make(var,exaile_pos,echo "`qdbus org.exaile.Exaile /org/exaile/Exaile CurrentProgress` * 2 - 8"|bc);\
Macro(EXAILE_SETPOS);\
Macro(EXAILE_SETTITLE);
FF=\
Make(var,exaile_pos,echo "`qdbus org.exaile.Exaile /org/exaile/Exaile CurrentProgress` * 2 + 12"|bc);\
Macro(EXAILE_SETPOS);\
Macro(EXAILE_SETTITLE);
PREV=\
Exec(exaile --prev);\
Macro(EXAILE_SETTITLE);
STOP=\
Timer(EXAILE_SETTITLE,cancel);\
Exec(exaile --stop);
NEXT=\
Exec(exaile --next);\
Macro(EXAILE_SETTITLE);
PAUSE=\
Exec(exaile --play-pause);\
Timer(EXAILE_SETTITLE,cancel);
RUN_IF_NEED=\
Exec(P=`ps -ef|grep exaile|grep -v grep|grep -v anyremote|grep -v nedit`; if [ "x$P" = "x" ]; then exaile 2> /dev/null & fi);
RUN_OR_QUIT=\
Timer(EXAILE_SETTITLE,cancel);\
Exec(P=`ps -ef|grep exaile|grep -v grep|grep -v anyremote|grep -v nedit`; if [ "x$P" = "x" ]; then exaile 2> /dev/null & else pkill -f "python (.)*exaile"; fi);
APP_QUIT=\
Timer(EXAILE_SETTITLE,cancel);Exec(pkill -f 'python (.)*exaile');
APP_PLAY_STATUS=\
Make(var,exaile_status,qdbus org.exaile.Exaile /org/exaile/Exaile org.exaile.Exaile.GetState);\
Make(var,app_status,if [ "x$(exaile_status)" = "xplaying" ]; then echo playing; else echo paused; fi);
Layout 3x4=\
Make(mode,exaile_3x4);
Layout 5x1=\
Make(mode,exaile_5x1);
[ModeEnd]
[Mode]=exaile_3x4 : exaile_general, default_player
EXAILE_SETTITLE=\
Macro(EXAILE_SETTITLE_GENERAL);
APP_MENU=\
Set(menu,replace,Play CD,Files,Layout 5x1,PowerMgmt);\
Macro(ALLIN1MENU);\
Macro(MEDIACENTER_MENU);
APP_POST_SETUP=\
Make(var,exaile_layout,by_value,3x4);
[ModeEnd]
[Mode]=exaile_cover
EXAILE_SETTITLE=\
Macro(EXAILE_SETTITLE_GENERAL);\
Macro(APP_COVER, if [ "x$(cover_size)" = "x" ]; then echo 1; else echo 0; fi);
APP_COVER=\
Make(var,media_file,qdbus org.exaile.Exaile /org/exaile/Exaile org.exaile.Exaile.GetTrackAttr __basedir);\
Macro(DEFAULT_COVER);
[ModeEnd]
[Mode]=exaile_5x1 : exaile_general, default_player_5x1, exaile_cover
APP_MENU=\
Set(menu,replace,Mute,Play CD,Files,Layout 3x4,Help,PowerMgmt);\
Macro(ALLIN1MENU);\
Macro(MEDIACENTER_MENU);
APP_POST_SETUP=\
Make(var,exaile_layout,by_value,3x4);
APP_TITLE=\
Macro(EXAILE_SETTITLE);
PLAY=\
Macro(PLAY_ONLY);
[ModeEnd]
[Mode]=exaile_nobutton
% bug-prone :)
1=Make(mode,exaile_$(exaile_layout));
2=Make(mode,exaile_$(exaile_layout));
3=Make(mode,exaile_$(exaile_layout));
4=Make(mode,exaile_$(exaile_layout));
5=Make(mode,exaile_$(exaile_layout));
6=Make(mode,exaile_$(exaile_layout));
7=Make(mode,exaile_$(exaile_layout));
8=Make(mode,exaile_$(exaile_layout));
9=Make(mode,exaile_$(exaile_layout));
*=Make(mode,exaile_$(exaile_layout));
0=Make(mode,exaile_$(exaile_layout));
#=Make(mode,exaile_$(exaile_layout));
[ModeEnd]
% rely on $(exaile_layout) variable
[Mode]=exaile_filebrowser : exaile_nobutton
(EnterMode)=\
Macro(FBROWSER_IC_FILL_LIST);\
Macro(UpdateMenu);
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(qdbus org.exaile.Exaile /org/exaile/Exaile org.exaile.Exaile.Enqueue "$(fbrowser_dir)"/$(Param));
Back($$)=\
Set(list,close);\
Make(mode,exaile_$(exaile_layout));
[ModeEnd]
[End]
%qdbus org.exaile.Exaile /org/exaile/Exaile org.exaile.Exaile.GetTrackAttr __loc
|