Skip to content

sssilvar/nosleep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nosleep

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.

Requirements

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

Install (Cargo)

cargo install --git https://github.com/sssilvar/nosleep

Installs to Cargo’s bin dir (often ~/.cargo/bin). You'' need to add it to your PATH.

Usage

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

License

MIT.

About

Prevent your computer from sleeping when you're running stuff

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages