super awesome script for lazy programmers who don't want to let their laptops go to sleep as something important is running behind and you are too lazy to switch off the go-to-sleep-after-inactivity
what does it do: very simple > moves the mouse pointer 10 px and 10 px down, in a loop
why the script
- computer sleeping, while running something on behind, sucks 🤢
- automating is fun ✌️
- python is ❤️
requirements: install pyautogui
python3 -m pip install pyautogui
steps to use this script safely
- make sure you are battery level is good
- run the background processes behind
- open a terminal, maximize it
- run the script
python3 script.py
that's it, you are good to go. you can leave your laptop and go for dinner.
how to resume back: end the script, press CTRL+C
note: good for you if you follow the 3rd step. if don't maximize it, sometimes you might run into trouble as the system might go crazy.
use at your own risk, don't blame @vchrombie