Jump to content

Caffeinate: Prevent macOS from Sleeping


Recommended Posts

Wrote a little shell script that calls the native macOS caffeinate binary to prevent macOS from sleeping. Not a ton of functionality, basically:

 

  • default, 1 hour
  • specify # of hours
  • turn caffeination off

 

It has notifications and sounds, which you can of course disable in the workflow editor if you like.

 

Hope you all like it!

 

Source code and download here:

 

https://github.com/paulsri/alfred-caffeinate

 

 

notify-notcaffeinated.png

notify-disablecaffeine.png

notify-caffeine8.png

notify-already.png

alfred-caffeineoff.png

alfred-caffeine8.png

alfred-caffeine.png

Edited by paulsri
Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...