Andreas Larsen

Caffeine Modes

Work, Night and Travel modes for Amphetamine. Keeps your Mac working with the screens off or the lid closed.

brew install --cask andreasnlarsen/tap/caffeine-modes
Example of the menu.

Questions

How do I start it?

Install Amphetamine from the Mac App Store and open it once.

Open Caffeine Modes. Go to “Settings…”, then “Setup”, and use the action beside each item.

Doesn't Amphetamine already do this?

It has every piece. Caffeine Modes sets them together for each mode and checks the result.

What do the three modes do?

Work keeps the Mac and its displays awake.

Night turns the displays off, locks the Mac and keeps it working.

Travel locks the Mac and keeps it working for 30, 60, 90 or 120 minutes. The lid can be closed.

Can I put the Mac in a bag?

No. A closed Mac that's working gets hot. Don't run it in an enclosed bag.

What about the battery?

Night and Travel start only when Amphetamine is set to end sessions at 15% battery. Amphetamine does the cutoff, so it holds if Caffeine Modes quits.

Why does it ask to control other apps?

That's how it starts and ends Amphetamine sessions. It doesn't ask for Accessibility access.

Does it send anything anywhere?

No. No analytics, no telemetry, no network code.

What does it need?

macOS 13 Ventura or later. Apple silicon or Intel. Amphetamine 5.3.2 or later.

On Apple silicon, Amphetamine Power Protect when Setup asks for it.

Night didn't turn a display off

Night stays on, and the menu says what happened. Choose “Retry Display Sleep” or “Turn Off Night”.

Homebrew says “untrusted tap”

Run brew trust andreasnlarsen/tap once. Then install again.

How do I update or remove it?

Update with brew upgrade --cask caffeine-modes.

Turn the mode off first. Then remove with brew uninstall --cask caffeine-modes.