macOS
brew install sleepwatcherlocal Homebrew formula metadata
sudo port install sleepwatcherMacPorts ports tree · sysutils/sleepwatcher/Portfile · source: api.github.com
brew / rank 1857
Monitors sleep, wakeup, and idleness of a Mac. Version 2.2.1 via Homebrew; verified 2026-09-13. Also installable with nix: nix profile install nixpkgs#sleepwatcher.
install
brew install sleepwatcherlocal Homebrew formula metadata
sudo port install sleepwatcherMacPorts ports tree · sysutils/sleepwatcher/Portfile · source: api.github.com
nix profile install nixpkgs#sleepwatchernixpkgs package indexes · pkgs/by-name/sl/sleepwatcher/package.nix · source: api.github.com
overview
Monitors sleep, wakeup, and idleness of a Mac
history
SleepWatcher monitors Mac sleep, wake and user activity and can execute commands when those states change.
Bernhard Baehr distributes SleepWatcher as a macOS command-line daemon with source code included. Older distributions remain available for Mac OS X 10.1–10.4.
The author's compatibility notes span early Mac OS X releases through Apple silicon, documenting longevity across several Mac platform transitions without providing adoption statistics.
Typical uses include running commands on suspend, resume, prolonged inactivity or power-adapter changes. The homepage also documents requesting sleep and querying elapsed idle time.
SleepWatcher connects macOS power and activity events to Unix commands, making it useful for shell-based workstation automation.
security posture
formula declares a Homebrew service.
orange risk · medium confidence · infrastructure
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.sleep~/.wakeup/etc/rc.sleep/etc/rc.wakeup~/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher.plist/Library/LaunchDaemons/de.bernhard-baehr.sleepwatcher.plistexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
sleepwatcher | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://www.bernhard-baehr.de/
install metadata
| Package key | brew:sleepwatcher |
|---|---|
| Version | 2.2.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/sleepwatcher |
| Homepage | https://www.bernhard-baehr.de/ |
| Upstream docs | https://www.bernhard-baehr.de/ |
| License | GPL-3.0-or-later |
| Source archive | https://www.bernhard-baehr.de/sleepwatcher_2.2.1.tgz |
| Last updated | 2026-09-13T02:34:49Z |
| Pulse | updated |
| Bottle | available (on arm64_big_sur, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura) |
| Homebrew post-install | not defined |
| Service | declared |
| Caveats | For SleepWatcher to work, you will need to write sleep and wakeup scripts, located here when using brew services: ~/.sleep ~/.wakeup |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | sleepwatcher |
| Version Scheme | 0 |
| Revision | 0 |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
sleepwatcher
nix profile install nixpkgs#sleepwatchersleepwatcher
sudo port install sleepwatchersource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.