A simple command-line tool to prevent your Mac from sleeping Currently working only on intelx64 macOs. More versions to come.
- Prevents your Mac's display from sleeping for a specified duration.
- Easily kill the active
nosleep
process. - Check the remaining time for the active
nosleep
process.
Pre-compiled Binaries
Download the latest release from the releases page and move the binary to a directory in your PATH
.
From Source
Ensure you have Rust and Cargo installed.
git clone https://github.com/johnretsas/nosleep.git
cd nosleep
cargo build --release
The binary will be available at target/release/nosleep
.
nosleep 120
This will prevent your Mac's display from sleeping for 120 minutes.
nosleep -k
nosleep -l