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 monterey
big sur
catalina
mojave
Apple Silicon monterey
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 (macOS):

Installs (30 days)
sleepwatcher 396
Installs on Request (30 days)
sleepwatcher 395
Build Errors (30 days)
sleepwatcher 0
Installs (90 days)
sleepwatcher 1,221
Installs on Request (90 days)
sleepwatcher 1,219
Installs (365 days)
sleepwatcher 4,033
Installs on Request (365 days)
sleepwatcher 3,971

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