Metadata-Version: 2.4
Name: jiggler-pro
Version: 0.2.0
Summary: A professional cross-platform zero-dependency mouse jiggler to prevent system sleep.
Author: Nidesh Pandey
Project-URL: Homepage, https://github.com/nideshpandey/jiggler-pro
Project-URL: Bug Tracker, https://github.com/nideshpandey/jiggler-pro/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# Jiggler Pro

A professional, zero-dependency mouse jiggler that keeps your computer awake by simulating human-like activity.

## Why Jiggler Pro

Jiggler Pro is designed for users who need a reliable, lightweight, and undetectable way to keep their systems active. Unlike other tools that require heavy dependencies or move the mouse in obvious, repetitive patterns, Jiggler Pro offers:

- **Indistinguishable Activity:** Stealth Mode uses randomized movement and timing to mimic a real user, making it much harder for monitoring software to flag.
- **Zero Installation Footprint:** It uses native system APIs (ctypes) rather than installing large libraries like `pyautogui`, keeping your environment clean.
- **System Integrity:** It always returns your cursor to its original position, ensuring it doesn't interfere with your work when you return to your desk.
- **Universal Compatibility:** A single codebase that runs natively on macOS, Windows, and Linux.

---

## Quick Start

### 1. Installation
Install from PyPI:
```bash
pip install jiggler-pro
```

Already installed? Upgrade to the latest version:
```bash
pip install --upgrade jiggler-pro
```

To install from a local copy of this repository instead, run `pip install .` in the project folder.

### 2. Basic Usage
Once installed, simply run:
```bash
jiggler-pro
```
*By default, it jiggles every 30 seconds.*

---

## Examples

| Goal | Command |
| :--- | :--- |
| **Fast Jiggle** (every 5s) | `jiggler-pro 5` |
| **Low Frequency** (every 2m) | `jiggler-pro 120` |
| **Human-like Stealth** | `jiggler-pro --stealth` |
| **Move + Click** | `jiggler-pro --click` |
| **Subtle Nudge** (1 pixel) | `jiggler-pro -p 1` |
| **Long Distance** (50 pixels) | `jiggler-pro -p 50` |
| **Balanced Stealth** | `jiggler-pro 10 -s` |
| **Keep Awake** (no mouse movement) | `jiggler-pro --keep-awake` |
| **Stop After 2 Hours** | `jiggler-pro --duration 2h` |
| **Stop at End of Day** | `jiggler-pro --until 18:00` |
| **Keep Awake Until 17:30** | `jiggler-pro -k -u 17:30` |

---

## Arguments and Options

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `seconds` | Positional | `30` | The interval between jiggles in seconds (minimum 1). |
| `-p`, `--pixels` | Integer | `7` | The distance in pixels the mouse will move (minimum 1). |
| `-s`, `--stealth` | Flag | `False` | Enables randomized timing, distances, and movement patterns. |
| `--click` | Flag | `False` | Also clicks at the cursor after each movement. **Use with care:** it clicks whatever is under the cursor. |
| `-k`, `--keep-awake` | Flag | `False` | Blocks system and display sleep through the OS instead of moving the mouse. Can't be combined with the mouse options above. |
| `-d`, `--duration` | Duration | — | Stops automatically after this long, e.g. `90s`, `45m`, `2h30m`. |
| `-u`, `--until` | Time | — | Stops automatically at this time (24-hour `HH:MM`). Rolls over to tomorrow if the time has passed. |
| `-q`, `--quiet` | Flag | `False` | Hides the live countdown; only the start and summary messages are shown. |
| `--version` | Flag | — | Prints the version and exits. |

Colors are turned off automatically when output isn't a terminal or when the `NO_COLOR` environment variable is set.

### Keep-Awake vs. Mouse Jiggling

`--keep-awake` asks the OS not to sleep (`SetThreadExecutionState` on Windows, `caffeinate` on macOS, `systemd-inhibit` on Linux). It never touches your cursor and needs no special permissions, but apps that track your own activity (for example chat "Away" statuses) may still mark you as away. Mouse jiggling covers those cases.

---

## Platform Notes

- **macOS:** Mouse jiggling needs Accessibility access for your terminal app (System Settings > Privacy & Security > Accessibility). Jiggler Pro exits with a message if it's missing. `--keep-awake` doesn't need it.
- **Linux:** Mouse jiggling requires X11 with `libX11` and `libXtst`. Wayland is not supported for mouse movement; use `--keep-awake` there (requires systemd). Some desktops may still blank the screen even while sleep is blocked.

---

## Interactive Controls

| Key | Action |
| :--- | :--- |
| **SPACE** / **ENTER** | **Stop** and exit safely. |
| **Ctrl + C** | Stop and exit safely. |

---

## Features
- **Zero Dependencies:** No extra libraries needed—runs on pure Python.
- **Stealth Mode:** Randomizes movement patterns and timing to stay undetected.
- **Cross-Platform:** Works natively on macOS, Windows, and Linux.
- **Safe:** Always returns the mouse to the exact spot it started.

## License
MIT
