Created
May 6, 2014 18:49
-
-
Save hjc/6bb6978588fcb3b67b8c to your computer and use it in GitHub Desktop.
NO DAMN SCREENSAVERS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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