News for hackers. Stuff that matters.
Re:MacBook Pro Insomnia by bhattisatish on Friday August 01, 2025 @09:20AM (#44756408)
`caffeinate -s <script>` should do the trick. You don't need anything else.

`caffeinate -d` will disable the shutting down of display.

`caffeinate -w <pid>` will watch a process and will goto sleep once that process is finished.

Re:MacBook Pro Insomnia by martin82 on Saturday August 02, 2025 @02:56AM (#44765377)
oh wow... 10 years on MacOS and I had no idea this is a thing