MouseJiggler makes your mouse cursor move a bit once in a while, keeping your computer from sleeping.
git clone https://github.com/harryxp/MouseJiggler.git
cd MouseJiggler/
python3 -m venv .venv
source .venv/bin/activate
pip install pyautogui
python3 mouse_jiggler.py