@paul As others have noted, Amphetamine is probably the way to go if you just want to handle the sleep thing. But if you also want other stuff to turn or off just as quickly, OneSwitch might also be worth a try. fireball.studio/oneswitch