An Alfred2 workflow to control the system caffeinate utility (prevents sleep).
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
applescripts updates to work with alfred3 out of the box Jul 28, 2016
images rewrote the entire thing as a bash script for speed Mar 12, 2014
screenshots added more screenshots Nov 8, 2013
.gitignore update.json Mar 29, 2013
21E6B823-C3EF-47C6-A40C-0C46F64332D2.png rewrote the entire thing as a bash script for speed Mar 12, 2014
Caffeinate Control.alfredworkflow Ensure no false positives when searching with grep Nov 20, 2017
LICENSE adding license Dec 17, 2017
action.sh updates to work with alfred3 out of the box Jul 28, 2016
icon.png updated to v 2 Nov 8, 2013
info.plist
library.sh
readme.md format readme; add license to readme Dec 17, 2017
script.sh Ensure no false positives when searching with grep Nov 20, 2017
workflow.ini updates to work with alfred3 out of the box Jul 28, 2016

readme.md

Caffeinate Control

Caffeinate is a native OS X command line utility that solves the problem of your Mac constantly falling asleep on you. This is especially annoying when you're trying to read something, and your screen keeps dimming and then turning off. This workflow allows you to interface with Caffeinate so that you needn't open the terminal and send commands.

Caffeinate was introduced in Mountain Lion (10.8), and it basically replicates what the Caffeine utility (web | app store from Lighthead Software) does.

Option Configuration

You can configure how you want Caffeinate to work for you. Do you want to keep the system awake? Just the display? Everything? Just type caff configure (or caff c), and you can set the options easily. If you want to change how it works later, then just run the config again. Change however frequent you want!

Defaults

We default to i or just to keep the system from idling (which lets you display turn off). Just run the config and choose more options to as you please. Multiple options are available by pressing cmd while clicking.

Commands

Just type caff to get started. It will tell you the status and give you the most relevant option first.

Example Arguments

  • caff e enables caffeinate indefinitely
  • caff d disables caffeinate
  • caff 15 2 enables caffeinate for 15 hours and 2 minutes
  • caff 23 enables caffeinate for 23 minutes
  • caff 2h enables caffeinate for 2 hours
  • caff configure opens the configuration dialog
  • caff help opens the help dialog.

Note: v1 and v2 were written in PHP. v3 is now simply a bash script and is much faster.

License

MIT