#!/bin/bash

export DISPLAY=:0

case "$1" in
    enable)
        xset s $2 $2 +dpms
    ;;
    disable)
        xset s off -dpms
    ;;
    *)
        echo "Usage screen.sh {enable <time>|disable}"
        exit 1
    ;;
esac

exit 0
