#!/bin/bash
#Stop XScreensaver
stop_xss.sh &
#Launch XBMC
/usr/bin/xbmc --lircdev /var/run/lirc/lircd
#Once XBMC exits, start XSceensager again
killall stop_xss.sh