#!/bin/sh

# Set volume
aumix -v 100

# Disable screensaver and screen blanking
xset -dpms
xset s off

# Set mouse cursor to invisible 
#xsetroot -cursor none.xbm none.xbm.mask

if [ "$X_TV_OUT_ENABLED" = "1" ]; then
  # Set the TV-out to produce a decent-sized image
  nvtv -t -r 800,600 -s Normal
fi

# Set the background image
xv -root -max -quit ~/eboxbackg.png

# Dummy application to hold the session open (useful too, temporarily)
xterm -geometry 132x4

# Reset the monitor, otherwise TV-only leaves the monitor in an unusable state
nvtv -m

# Reset volume
aumix -v 75
