Skip to content

zkokaja/caffeinate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coffee Cup Icon Caffeinate

GitHub Release GitHub Actions Workflow Status GitHub License

Have you ever noticed your mac getting sleepy at the most inopportune time? First its display dims a little bit, and next it falls asleep altogether! With this menulet you can share that caffeine goodness, and keep your Mac awake. Potentially very useful when giving presentations, connected to remote servers, or ensuring a long task will complete uninterrupted.

Usage

Once installed and running, the coffee cup icon will appear in the top left side of your menubar:

Menu Bar Icon

Clicking on it shows the following items. The first section lists time intervals which you'd like to keep the system from sleeping. While the second allows you to toggle options that alter the specific behavior which you want to prevent (see the Options section below for details).

Menu Options Menu Options On

Installation

Options:

  1. Download the app from GitHub releases, here (zip).
  2. Build with XCode then go to Product -> Archive to get a .app file.

Options

From man caffeinate:

Option Description
Disk Create an assertion to prevent the disk from idle sleeping.
Display Create an assertion to prevent the display from sleeping.
Idle Sleep Create an assertion to prevent the system from idle sleeping.
System Create an assertion to prevent the system from sleeping. This assertion is valid only when system is running on AC power.
User Create an assertion to declare that user is active. If the display is off, this option turns the display on and prevents the display from going into idle sleep.

Developer

The code is very simple and self explanatory, and I welcome contributions. We simply fork a process to /usr/bin/caffeinate for the core functionality.

Icons made by Freepik from www.flaticon.com.