#!/bin/sh
# mplayer wrapper script
MPLAYER=mplayer1
GMPLAYER=mplayer3

if [ -f /home/root/Choices/pdaxii13.conf ] && [ "`grep GMPLAYER $HOME/Choices/pdaxii13.conf|grep true`" != "" ]; then
   if [ "`which $GMPLAYER`" != "" ]; then
     $GMPLAYER -framedrop -dr -cache 2048 -ao sdl -vo x11 "$*"
   else
     aterm -iconic -e gmplayer -framedrop -dr -cache 2048 -ao sdl -vo x11 "$*"
   fi
else 
  if [ "$1" = "" ]; then
    $MPLAYER
  else
    aterm -e $MPLAYER "$*"
    xrandr -o normal 
  fi   
fi
