Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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!
- Host: GitHub
- URL: https://github.com/reachvivek/stayawake
- Owner: reachvivek
- Created: 2024-11-02T23:08:33.000Z (16 days ago)
- Default Branch: main
- Last Pushed: 2024-11-03T00:14:03.000Z (16 days ago)
- Last Synced: 2024-11-03T01:17:35.080Z (16 days ago)
- Topics: mouse-jiggler, pyautogui, python
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.**