A lightweight Python tool to keep your computer awake by gently moving the mouse in customizable patterns. Perfect for preventing sleep mode, staying online, or avoiding away status on messaging apps!
- Activity Detection: Automatically triggers mouse jiggling after 30 seconds of inactivity, ensuring your computer remains awake without constant manual control.
- Customizable Patterns: Move the mouse in circular, random, or user-defined patterns.
- Adjustable Timing: Set the intervals and movement radius to suit your needs.
- Simple & Lightweight: Runs quietly in the background without interrupting your workflow.
- Cross-Platform: Works on Windows, macOS, and Linux.
- Clone the repository:
git clone https://github.com/reachvivek/stayawake.git cd stayawake
- Install dependencies:
pip install -r requirements.txt
- Run the script:
python stay_awake.py
- Customize Movement Pattern and Intervals: By default, the mouse moves in a small circular pattern every 5 seconds. Adjust the radius and interval in stay_awake.py to change the behavior:
radius = 10 # Distance of the jiggle movement
interval = 5 # Time between each movement in seconds
- Stop the Script: Press Ctrl + C in the terminal to stop the program.