jiggle.py (337B)
1 #!/usr/bin/env python3 2 # DESCRIPTION: keep the machine awake my giving the mous a slight jiggle periodically 3 # DEPENDENCIES: python3, pyautogui (pip3 install pyautogui) 4 import pyautogui 5 from time import sleep 6 from random import randint 7 8 while (1): 9 x, y = pyautogui.position() 10 pyautogui.moveTo(x^1, y^1) 11 sleep(randint(0, 60))