Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For MacOS, keep awake with:

sudo pmset -a disablesleep 1

Reset back:

sudo pmset -a disablesleep 0



This is exactly what the app does, except it ties it to agent activity and re-enables sleep once the turn ends, the laptop is close to overheating, the battery is low, or on a timer.


Nice. I needed this yesterday, and will need it again today.


This works great. Only downside is display doesn't turn off when you close the lid. Made a little status bar utility to wrap the disablesleep command and address that downside:

https://github.com/narcotic-sh/modafinil

(yes, I know, another *afinil named Mac sleep prevention app? but hey, I was first :P)


Afinils are cool, and your app is cool too~


Indeed.

Thanks!


Just tried. Bare minimal and does exactly what's needed and nothing else. Love it. Thanks..


np cheers mate




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: