No description
Find a file
2025-10-03 12:14:46 -06:00
.github/workflows ci: install linux deps for release build 2025-10-03 12:05:04 -06:00
.vscode feat: initial Rust mouse wiggler 2025-10-03 11:55:56 -06:00
src feat: initial Rust mouse wiggler 2025-10-03 11:55:56 -06:00
.gitignore feat: initial Rust mouse wiggler 2025-10-03 11:55:56 -06:00
Cargo.lock feat: initial Rust mouse wiggler 2025-10-03 11:55:56 -06:00
Cargo.toml crates.io stuff 2025-10-03 12:14:46 -06:00
LICENSE crates.io stuff 2025-10-03 12:14:46 -06:00
README.md feat: initial Rust mouse wiggler 2025-10-03 11:55:56 -06:00

mtm

Keep your screen awake by occasionally nudging the mouse pointer. The program waits a random amount of time between a lower and upper bound, then wiggles the cursor by a few pixels so the system stays active.

Usage

cargo run --release -- --lower 45s --upper 2m15s --distance 20 --verbose

Arguments

  • --lower / -l: Shortest interval between wiggles. Accepts values such as 30s, 4m2s, or 1h5m. Default: 45s.
  • --upper / -u: Longest interval between wiggles. Same format as --lower. Must be greater than or equal to --lower. Default: 90s.
  • --distance / -d: Maximum pixel distance for each wiggle (the pointer moves there and back). Default: 15.
  • --verbose / -v: Print wait intervals and mouse-movement details each cycle.

Press Ctrl+C to stop the program.

Notes

  • Durations support hours (h), minutes (m), seconds (s), and milliseconds (ms). You can chain multiple units together, e.g. 1m30s.
  • The program moves the pointer out and then back, so it returns to its original position after each wiggle.