pkg.soopen package index

brew / rank 1857

Install sleepwatcher with Homebrew, MacPorts, Nix

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

Additional install commands

macOS

Homebrewverified · 100%
brew install sleepwatcher

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install sleepwatcher

MacPorts ports tree · sysutils/sleepwatcher/Portfile · source: api.github.com

Linux

Nixverified · 92%
nix profile install nixpkgs#sleepwatcher

nixpkgs package indexes · pkgs/by-name/sl/sleepwatcher/package.nix · source: api.github.com

overview

Package summary

Monitors sleep, wakeup, and idleness of a Mac

Commands and aliases

  • sleepwatcher

history

Project history and usage

SleepWatcher monitors Mac sleep, wake and user activity and can execute commands when those states change.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

SleepWatcher connects macOS power and activity events to Unix commands, making it useful for shell-based workstation automation.

Timeline

  • Early Mac OS X era: Releases supported Mac OS X 10.1 and 10.2.
  • Apple silicon era: The author documents Rosetta 2 operation and provides a Makefile for native compilation.

Related projects

  • macOS power management
  • Unix shell scripting

security posture

Risk level: orange

formula declares a Homebrew service.

Risk classifier

orange risk · medium confidence · infrastructure

Why

  • formula declares a Homebrew service

Signals

  • metadata:service

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Formula metadata declares a service or daemon block.
  • Homebrew bottle metadata is available for 10 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

macOS
~/.sleep~/.wakeup/etc/rc.sleep/etc/rc.wakeup~/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher.plist/Library/LaunchDaemons/de.bernhard-baehr.sleepwatcher.plist

executables

Installed executables

CommandKindExposureNote
sleepwatchercliglobal executable

freshness

Version and 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.

page generated2026-09-19
manager version2.2.1
manager updated2026-09-13
local dataok
upstreamnot checked
latest detectednot detected

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

install metadata

Package metadata

Package keybrew:sleepwatcher
Version2.2.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/sleepwatcher
Homepagehttps://www.bernhard-baehr.de/
Upstream docshttps://www.bernhard-baehr.de/
LicenseGPL-3.0-or-later
Source archivehttps://www.bernhard-baehr.de/sleepwatcher_2.2.1.tgz
Last updated2026-09-13T02:34:49Z
Pulseupdated
Bottleavailable (on arm64_big_sur, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura)
Homebrew post-installnot defined
Servicedeclared
CaveatsFor SleepWatcher to work, you will need to write sleep and wakeup scripts, located here when using brew services: ~/.sleep ~/.wakeup

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namesleepwatcher
Version Scheme0
Revision0
Requirements
  • macos
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

sleepwatcher

nix profile install nixpkgs#sleepwatcher
  • normalized package name match
  • Matched by: Sleepwatcher
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/sl/sleepwatcher/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

sleepwatcher

sudo port install sleepwatcher
  • normalized package name match
  • Matched by: Sleepwatcher
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/sleepwatcher/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation