Skip to content

Instantly share code, notes, and snippets.

@hjc
Created May 6, 2014 18:49
Show Gist options
  • Save hjc/6bb6978588fcb3b67b8c to your computer and use it in GitHub Desktop.
Save hjc/6bb6978588fcb3b67b8c to your computer and use it in GitHub Desktop.
NO DAMN SCREENSAVERS
no-screensaver () {
COUNTER=0;
while [ $COUNTER -ne "-1" ]; do
xdotool mousemove $COUNTER 0
COUNTER=$(echo "$COUNTER + 5" | bc)
if [ $COUNTER -eq "255" ]; then
COUNTER=0
fi
sleep 7m;
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment