Remix.run Logo
rancar2 4 hours ago

For MacOS, keep awake with:

sudo pmset -a disablesleep 1

Reset back:

sudo pmset -a disablesleep 0

kageroumado 4 hours ago | parent | next [-]

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.

xbar 4 hours ago | parent [-]

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

hamza_q_ an hour ago | parent | prev [-]

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)

kageroumado 24 minutes ago | parent [-]

Afinils are cool, and your app is cool too~