Skip to content

Repository files navigation

cafectl

A small menu bar and command-line utility to caffeinate your Mac.

  • Prevent display, system, or disk sleep independently.
  • Automation for each mode based on power source and battery level.

Installation

brew tap mattbui/formulae
brew install mattbui/formulae/cafectl

Usage

Start the service:

cafectl start

or with Homebrew:

brew services start cafectl

Commands:

cafectl toggle display
cafectl toggle system
cafectl toggle disk
cafectl status
cafectl off-all
cafectl stop

Run cafectl --help for all commands.

Or use the menu bar item to set power policies and automatic activation for each mode.

Build

Build from source with Swift 6 on macOS 13 or later:

swift build -c release

Acknowledgements

  • The menu bar icon rendering code is adopted from Vorssaint

About

A small menu bar and command-line utility to caffeinate your Mac.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages