#!/bin/bash #This will force ES to refresh its display, grabbing the correct custom arguments we've set. #Set logfile location and filename #logfile=/tmp/scriptlog.txt #Case selection for first parameter parsed case $1 in # gameStart) # echo "START" > $logfile # echo "$@" >> $logfile # ;; gameStop) xrandr -display :0.0 --output DVI-0 --mode "640x480i" ;; esac