#!/bin/bash #This is an example file how Events on START or STOP can be uses # #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" xrandr -display :0.0 --output DVI-0 --scale-from "640x480i" ;; esac