Skip to content

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!

Notifications You must be signed in to change notification settings

reachvivek/StayAwake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

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!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages