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:
Yeah this is the first app I tried when I was evaluating my options before making something myself. With the following settings:
Allow display sleep: on
Allow system sleep when display is closed: off
It did prevent sleep when you close the lid, but it didn't turn off the display off. I really wanted the display to turn off like normal (while still preventing sleep), which is what Modafinil does.
Now I made a couple posts on Reddit and I've gotten reports that this may be a bug because apparently it _is_ supposed to turn off the display when you close the lid with those settings. I've also had someone say Amphetamine indeed doesn't support this out of the box because it violates App Store policies, and so you need Amphetamine Enhancer. Not sure what the actual truth is.
Modafinil will prevent sleep and turn off the display when you close the lid. But just the `sudo pmset disablesleep 1` command alone will only prevent sleep when you close the lid, it won't turn off the display.