Update to smplayer.cfg

2008-12-07
2012-12-10
  • Kyle Amadio

    Kyle Amadio - 2008-12-07

    Hi made a few updates to smplayer.cfg for Stop and Play (Pauses and Plays, doesn't Stop) was previously seeing "p"

    If someone has more info would love to know more :)

    %
    % anyremote configuration file for smplayer management. (Server-mode)
    % (tested with v0.2.37)
    %

    % STATUS stable
    % XTEST yes
    % SOUND app
    % ENV no
    % FBROWSER v.3

    % Uncomment if needed
    %AutoRepeat=false
    Baudrate=19200
    Device=bluetooth:19
    Log=true
    Screen=true

    GuiAppName=Smplayer
    GuiAppBinary=smplayer
    GuiAppRun=echo 'A=`ps -ef|grep smplayer|grep -v grep`; if [ "x$A" == "x" ]; then echo NOK; else echo OK; fi'|bash -f -s
    GuiAppIcon=smplayer.png
    GuiAppType=Application
    GuiAppDesc=SMPlayer intends to be a complete front-end for MPlayer

    [Aliases]
    % Cancel buttons on different phones
    -11=Cancel
    -8=Cancel
    69=Cancel
    [End]

    [Keys]

    (Connect)=Make(mode,smplayer);\     Load($(Home)/.anyRemote/hook_connect);

    [Mode]=smplayer

    (EnterMode)=Macro(SET_CARD);\     Set(icons,Smplayer,1,vol_down,2,mute,3,vol_up,4,rewind,5,play,6,forward,7,fullscreen,8,stop,9,default,*,question,0,view_tree,#,no);\     Set(title,);\     Set(status,);\     Macro(ALLIN1MENU);

    QUIT      =Emulate(keydown,Control_L,key,x,keyup,Control_L)
    UPDATEMENU=Set(menu,replace,GoTo,Open,Go Home);

    % FBROWSER v.3i
    FillList=Set(iconlist,replace,Files,folder:..);\     Macro(FillDir);\         Macro(FillFile);
    FillDir =ExecAndSet(iconlist,add,SAME,cd "`cat $HOME/.anyRemote/ar_storedir.tmp`";ls -F --quoting-style=shell|sed 's/\*//;s/,/\r/g;s/@//;s/$/,/'|grep '/'| xargs -d '\n' -i echo "folder:" {} $(to_utf));
    FillFile=ExecAndSet(iconlist,add,SAME,cd "`cat $HOME/.anyRemote/ar_storedir.tmp`";ls -F --quoting-style=shell|sed 's/\*//;s/,/\r/g;s/@//;s/$/,/'|grep -v '/'| xargs -d '\n' -i echo "file:"{} $(to_utf));
    GoTo($$)=Make(var,goto,echo "$(Param)"$(from_utf));\     ExecAndSet(iconlist,replace,Files,cd "`cat $HOME/.anyRemote/ar_storedir.tmp`";echo "if [ -d $(goto) ]; then cd $(goto);fi;pwd>$HOME/.anyRemote/ar_storedir.tmp;"|bash -f -s;echo "folder:..");\     Macro(FillDir);\         Macro(FillFile);
    Go Home($$)=ExecAndSet(iconlist,replace,Files,cd;pwd>$HOME/.anyRemote/ar_storedir.tmp;echo "folder:..");\     Macro(FillDir);\         Macro(FillFile);
    % FBROWSER v.3i

    Cancel  =Macro(QUIT);Exit
    Back    =Set(text,close);Macro(ALLIN1MENU);
    Back($$)=Set(list,close);Macro(ALLIN1MENU);
    Open($$)=Set(list,close);\     Set(menu,clean);\     Macro(ALLIN1MENU);\     Exec(cd "`cat $HOME/.anyRemote/ar_storedir.tmp`";smplayer "`echo $(Param)$(from_utf)`" 2> /dev/null);\     ExecAndSet(title,echo "$(Param)"$(from_utf));

    1=Emulate(key,9)
    2=Emulate(key,m)
    3=Emulate(key,0)

    4=Emulate(key,Left)
    5=Emulate(key,Media Play)
    6=Emulate(key,Right)

    7=Emulate(key,f)
    8=Emulate(key,Media Stop)

    * *=Set(text,replace,Help,1 - Vol-\n2 - Mute\n3 - Vol+\n4 - Rew\n5 - Play/Pause\n6 - FF\n7- Toggle fullscreen\n8 - Play/Pause\n* *- Help\n0 - File browser\n# - Exit)
    0=Macro(QUIT);Macro(FillList);Macro(UPDATEMENU);
    #=Macro(QUIT)

    [ModeEnd]

    [End]

     
    • Mike

      Mike - 2008-12-07

      Thanks ! I'm going to include corrected version in the next release.

       
    • Mike

      Mike - 2008-12-07

      oops...

      There is no such keysyms:
      5=Emulate(key,Media Play)
      8=Emulate(key,Media Stop)

      so, i suggest to use

      5=Emulate(key,Space)
      8=Emulate(key,Space)

       

Log in to post a comment.