Prevent your Mac from sleeping.
Just a simple wrapper around:
/usr/bin/caffeinate -dimsuAs long as the app runs, caffeinate is active.
Requires macOS High Sierra (10.13) or higher.
brew install --cask relikd/tap/teatime
xattr -d com.apple.quarantine /Applications/TeaTime.appor download from releases.
You'll need the Swift 5 Runtime Support. Download either from Apple (developer account required) or use this dmg.
- Run
maketo create an app bundle. - OR: call the script directly (
swift src/main.swift). - OR: create a new Xcode project, select the Command-Line template, and replace the provided
main.swiftwith this one.
Remember Caffeine? I thought it was discontinued, but apparently someone else is continuing the work.
Anyway, I love simple tools!
| Feature | TeaTime | Caffeine |
|---|---|---|
| Min OS version | 10.13 | 11 |
| App size | 280 Kb | 7 Mb |
| Simulate mouse events | No | Yes |
| Timers | No | Yes |
| Configuration options | No | Yes |
| Ugly icon | Yes | No |
