scripts

My personal collection of scripts
git clone git://src.gearsix.net/scripts
Log | Files | Refs | Atom | README | LICENSE

commit 48ac7ab9b2db0d4a774c63e16282c41466eab69a
parent 87f50a16af29c93fa9cf6040b2ada3e46cd5d8fd
Author: gearsix <gearsix@tuta.io>
Date:   Tue, 28 Jun 2022 16:12:22 +0100

added any/jiggle.py

Diffstat:
Aany/jiggle.py | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/any/jiggle.py b/any/jiggle.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 +# DESCRIPTION: keep the machine awake my giving the mous a slight jiggle periodically +# DEPENDENCIES: python3, pyautogui (pip3 install pyautogui) +import pyautogui +from time import sleep +from random import randint + +while (1): + x, y = pyautogui.position() + pyautogui.moveTo(x^1, y^1) + sleep(randint(0, 60))