# Install sleepwatcher with Homebrew, MacPorts, Nix

Monitors sleep, wakeup, and idleness of a Mac. Version 2.2.1 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#sleepwatcher.

## Install

```sh
sudo av install brew:sleepwatcher
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install sleepwatcher
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install sleepwatcher
```

  Evidence: MacPorts ports tree: sysutils/sleepwatcher/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#sleepwatcher
```

  Evidence: nixpkgs package indexes: pkgs/by-name/sl/sleepwatcher/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:sleepwatcher
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/sleepwatcher>
- **Version:** 2.2.1
- **Source summary:** Monitors sleep, wakeup, and idleness of a Mac
- **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>
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- sleepwatcher (cli)
- sleepwatcher (alias)

## Install behavior

- Post-install hook: 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
- Bottle: available on arm64_big_sur, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 2.2.1
- Local data: ok
- Upstream repository: https://www.bernhard-baehr.de/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.

## Security Notes

formula declares a Homebrew service.

- **Geiger risk:** orange / medium
- formula declares a Homebrew service

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** sleepwatcher
- **Version Scheme:** 0
- **Revision:** 0
- **Requirements:** macos
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - sleepwatcher: normalized package name match | nixpkgs package indexes: pkgs/by-name/sl/sleepwatcher/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - sleepwatcher: normalized package name match | MacPorts ports tree: sysutils/sleepwatcher/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Secret-risk packages](https://pkg.so/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Productivity CLI packages](https://pkg.so/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [mole](https://pkg.so/brew/mole/) - Shares pkgdb curated category or tags: cli, macos, system.
- [mas](https://pkg.so/brew/mas/) - Shares pkgdb curated category or tags: cli, macos, system.
- [cliclick](https://pkg.so/brew/cliclick/) - Shares pkgdb curated category or tags: automation, cli, macos, system.
- [osx-cpu-temp](https://pkg.so/brew/osx-cpu-temp/) - Shares pkgdb curated category or tags: cli, macos, system.
- [fileicon](https://pkg.so/brew/fileicon/) - Shares pkgdb curated category or tags: cli, macos, system.
- [m-cli](https://pkg.so/brew/m-cli/) - Shares pkgdb curated category or tags: automation, cli, macos, system.
- [reattach-to-user-namespace](https://pkg.so/brew/reattach-to-user-namespace/) - Shares pkgdb curated category or tags: cli, macos, system.
- [mist-cli](https://pkg.so/brew/mist-cli/) - Shares pkgdb curated category or tags: cli, macos, system.
- [direvent](https://pkg.so/brew/direvent/) - Local package facts share a topical domain. Shared terms: cli, daemon, monitoring, monitors, system.

## Combined YAML source

View the package source record on GitHub. [combined/sleepwatcher.yml](https://github.com/mxcl/pkgdb/blob/main/combined/sleepwatcher.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
