/usr/share/anyremote/cfg-data/AT-mode/moc.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 | %
% anyremote configuration file for moc (http://moc.daper.net) management. (AT-mode)
% prerequisites: amixer/pactl utility
%
% STATUS stable
% XTEST no
% SOUND mixer
% ENV no
GuiAppName=MOC
GuiAppBinary=mocp
GuiAppRun= P=`ps -ef|grep mocp|grep -v grep|grep -v anyremote|grep -v nedit`; if [ "x$P" = "x" ]; then echo NOK; else echo OK; fi
GuiAppType=Application
GuiAppProtocols=AT
GuiAppDesc=Console audio player for Linux/UNIX
[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,moc);
[Mode]=moc
(EnterMode)=\
Exec(mocp -S&);
Cancel=\
Exec(mocp -x);\
Make(exit);
MOC_TITLE=\
Make(var,message,mocp -i|grep Artist|sed "s/Artist: //"` `mocp -i|grep SongTitle|sed "s/SongTitle: //");\
Macro(SHOW_MSG);
1=Macro(DEFAULT_VOLUME_DOWN)
2=Macro(DEFAULT_TOGGLE_MUTE)
3=Macro(DEFAULT_VOLUME_UP)
4=Exec(mocp -k -10)
5=Exec(mocp -p);Macro(MOC_TITLE)
6=Exec(mocp -k 10)
7=Exec(mocp -r);Macro(MOC_TITLE)
8=Exec(mocp -s);
9=Exec(mocp -f);Macro(MOC_TITLE)
* *=Exec(F="$(TmpDir)/anyrem.hlp";echo "1 - Vol- 2 - Mute 3 - Vol+" > $F;echo "4 - Rew 5 - Play 6 - FF" >> $F;echo "7 - Prev 8 - Stop 9 - Next" >> $F;echo "* * - Help 0 - Pause # - Quit" >> $F;echo "* # - Run/Quit Moc" >> $F);\
Macro(SHOW_HELP);
* #=Exec(P=`ps -ef | grep mocp | grep -v grep | grep -v anyremote | grep -v nedit`; if [ "x$P" = "x" ]; then mocp -S& else mocp -x; fi)
0=Exec(mocp -G);
#=Exec(mocp -x)
[ModeEnd]
[End]
|