Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reachvivek/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!
https://github.com/reachvivek/stayawake

mouse-jiggler pyautogui python

Last synced: 15 days ago
JSON representation

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!

Awesome Lists containing this project

README

        

# 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**:
```bash
git clone https://github.com/reachvivek/stayawake.git
cd stayawake
```
2. **Install dependencies**:
```bash
pip install -r requirements.txt
```

## 📝 Usage
1. **Run the script**:
```bash
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:**
```bash
radius = 10 # Distance of the jiggle movement
interval = 5 # Time between each movement in seconds
```
3. **Stop the Script: Press Ctrl + C in the terminal to stop the program.**