sleepwatcher

Install command:
brew install sleepwatcher

Monitors sleep, wakeup, and idleness of a Mac

https://www.bernhard-baehr.de/

License: GPL-3.0-or-later

/api/formula/sleepwatcher.json (JSON API)

/api/bottle/sleepwatcher.json (Bottle JSON API)

Formula code on GitHub

Bottle (binary package) installation support provided for macOS releases:

Intel big sur
catalina
mojave
Apple Silicon big sur

Current versions:

stable 2.2.1

Requires: macOS

For SleepWatcher to work, you will need to write sleep and
wakeup scripts, located here when using brew services:

    ~/.sleep
    ~/.wakeup

Analytics:

Installs (30 days)
sleepwatcher 259
Installs on Request (30 days)
sleepwatcher 246
Build Errors (30 days)
sleepwatcher 0
Installs (90 days)
sleepwatcher 766
Installs on Request (90 days)
sleepwatcher 738
Installs (365 days)
sleepwatcher 3,606
Installs on Request (365 days)
sleepwatcher 3,446
Fork me on GitHub