Enable/Disable Monitor suspension

This was the script which last term took us more time to develop. It was also the one which gave us the greater satisfaction when we saw it working. After all you will see how short it ended up being.

# LDC - Luigi Giannandrea
# LDC - Daniel Campello
# Fri Jun 27 13:27:24 VET 2008

export XAUTHORITY="/var/lib/gdm/:0.Xauth"
export DISPLAY=:0
case "$1" in
   "off") xset dpms force suspend;;
   "on") xset dpms force on; xte 'keydown Rigth' 'keyup Rigth';;