Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1.4 KB

README.md

File metadata and controls

35 lines (29 loc) · 1.4 KB

StayAwake 🖱️

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!

🚀 Features

  • 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.

📥 Installation

  1. Clone the repository:
    git clone https://github.com/reachvivek/stayawake.git
    cd stayawake
  2. Install dependencies:
pip install -r requirements.txt

📝 Usage

  1. Run the script:
    python stay_awake.py
  2. 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
  1. Stop the Script: Press Ctrl + C in the terminal to stop the program.