Keep your machine from going to idle sleep while running long jobs.
| Platform | Idle prevention | Tray “running” indicator |
|---|---|---|
| macOS | Yes (IOPM assertion, like caffeinate -i) |
Yes (menu bar) |
| Linux | Planned | Planned (same UX) |
| Windows | Not yet | — |
How each OS is (or will be) implemented: doc/platforms.md.
- Rust (recent stable; this crate uses edition 2024).
- macOS today for a working build of idle prevention; Linux support is intended—see doc/platforms.md.
cargo install --git https://github.com/sssilvar/nosleepInstalls to Cargo’s bin dir (often ~/.cargo/bin). You'' need to add it to your PATH.
nosleep [MINUTES]
- No argument — runs until Quit nosleep in the tray/menu bar menu (macOS).
MINUTES— exit automatically after that many minutes (e.g.nosleep 120).
Starting from a terminal: the tray icon stays up while the process runs; closing the terminal may kill the app unless you detach it (nohup, background job, etc.).
MIT.