#!/bin/bash

#OPT="--fullscreen"
#if [ -e /tmp/nofull ] ; then
#  echo "No fullscreen mode"
#  OPT="--window"
#fi

#/usr/share/juxlala/scripts/splash.sh ~/.idesktop/icons/ecomp.png /usr/games/gcompris $OPT
 


#!/bin/bash

eval $(xwininfo -root 2>/dev/null | egrep 'Width|Height' | sed -e 's/^[[:space:]]\+//; s/:[[:space:]]*/=/')

if [ -z "$Width" ]; then
        # no Width - set default values
        Width=$DEFWIDTH
        Height=$DEFHEIGHT
fi

fourtothree="$Width"x"$Height"
echo "$fourtothree"

if [ "$fourtothree" == "800x600" ] || [ "$fourtothree" == "1024x768" ] || [ "$fourtothree" == "1152x864" ] || [ "$fourtothree" == "1280x1024" ] || [ "$fourtothree" == "1600x1200" ] || [ "$fourtothree" == "1920x1440" ]; then
        #echo "stimmt ueberein"
/usr/share/juxlala/scripts/splash.sh ~/.idesktop/icons/ecomp.png /usr/games/gcompris --fullscreen
else
        #echo "stimmt nicht"
/usr/share/juxlala/scripts/splash.sh ~/.idesktop/icons/ecomp.png /usr/games/gcompris -x
fi





