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

Formula JSON API: /api/formula/sleepwatcher.json

Bottle JSON API: /api/bottle/sleepwatcher.json

Formula code: sleepwatcher.rb on GitHub

Bottle (binary package) installation support provided for:

Intel ventura
monterey
big sur
catalina
mojave
Apple Silicon ventura
monterey
big sur

Current versions:

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

    ~/.sleep
    ~/.wakeup

Analytics (macOS):

Installs (30 days)
sleepwatcher 448
Installs on Request (30 days)
sleepwatcher 446
Build Errors (30 days)
sleepwatcher 0
Installs (90 days)
sleepwatcher 1,276
Installs on Request (90 days)
sleepwatcher 1,274
Installs (365 days)
sleepwatcher 5,266
Installs on Request (365 days)
sleepwatcher 5,258

Analytics (Linux):

Installs (30 days)
sleepwatcher 0
Installs on Request (30 days)
sleepwatcher 0
Build Errors (30 days)
sleepwatcher 0
Installs (90 days)
sleepwatcher 0
Installs on Request (90 days)
sleepwatcher 0
Installs (365 days)
sleepwatcher 0
Installs on Request (365 days)
sleepwatcher 0
Fork me on GitHub