Skip to content

A clean cli tool built with Rust for macOS that blocks display from sleeping, for lazy users

Notifications You must be signed in to change notification settings

johnretsas/nosleep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nosleep

A simple command-line tool to prevent your Mac from sleeping Currently working only on intelx64 macOs. More versions to come.

Features

  • 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.

Installation

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.

Usage

Prevent your Mac's display from sleeping:

nosleep 120

This will prevent your Mac's display from sleeping for 120 minutes.

Kill the active nosleep process:

nosleep -k

Check the remaining time for the active nosleep process:

nosleep -l

About

A clean cli tool built with Rust for macOS that blocks display from sleeping, for lazy users

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages