%
% anyremote configuration file for Freevo. (Server-mode)
% prerequisites xterm
%

% STATUS unknown
% XTEST yes
% SOUND app
% ENV no

GuiAppName=Freevo
GuiAppBinary=freevo
GuiAppRun=echo 'A=`ps -ef|grep freevo|grep main.py|grep -v grep`; if [ "x$A" == "x" ]; then echo NOK; else echo OK; fi'|bash -f -s
GuiAppIcon=freevo.png
GuiAppType=Application
GuiAppProtocols=Server
GuiAppDesc=Freevo is a Home theatre platform. It allows you to manage your entire digital media collection - music, videos, photos etc.

[Protocol]=Server

(Init)=Include($(CfgDir)/Utils/aliases-server.cfg);
(Connect)=Make(mode,freevo);

FREEVO_MUTE      =Emulate(key,F3)
FREEVO_VOLUMEDOWN=Emulate(key,n)
FREEVO_VOLUMEUP  =Emulate(key,m)
FREEVO_FULLSCREEN=Emulate(key,z)
FREEVO_RUN       =Exec(echo 'P=`ps -ef|grep freevo|grep main.py|grep -v grep`; if [ "x$P" == "x" ]; then xterm -geometry "1x1+0+0" -e freevo& fi' |bash -f -s)

[Mode]=freevo

(EnterMode)=\
	Set(status,Cursor);\
	Set(title,Move cursor by 2 4 6 8);\
	Set(layout,default);\
	Set(icons,Freevo,1,plus,2,up,3,fullscreen,4,left,5,plus,6,right,7,default,8,down,9,play,*,question,0,default,#,refresh);\
	Macro(FREEVO_MENU);\
	Set(font,small);\
	Macro(FREEVO_RUN);

FREEVO_MENU=Set(menu,replace,);

Back=Set(text,close);Macro(FREEVO_MENU)
Cancel=Exit

1=Macro(FREEVO_RUN);
2=Emulate(key,Up)
3=Macro(FREEVO_FULLSCREEN)

4=Emulate(key,Left)
5=Emulate(key,Return)
6=Emulate(key,Right)

8=Emulate(key,Down)

* 1=Macro(FREEVO_VOLUMEDOWN)
* 2=Macro(FREEVO_MUTE)
* 3=Macro(FREEVO_VOLUMEUP)
* *=Set(text,replace,Help, Move cursor by 2,4,6,8\n5 select/enter\n# - return back\n * 1 - volume down\n * 1 - toggle mute\n * 3 - volume up)
#=Emulate(key,Escape);

[ModeEnd]

% Aliases for AverMedia IR remote
VOLUMEDOWN=Macro(FREEVO_VOLUMEDOWN)
MIN_INTERESTING=Macro(FREEVO_MUTE)
VOLUMEUP=Macro(FREEVO_VOLUMEUP)

ZOOM=Macro(FREEVO_FULLSCREEN)
TEXT=Macro(*)
POWER=Macro(#)

[End]
