# 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.

## 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-07-08T18:08:21+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-07-08
- 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://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Productivity CLI packages](https://www.automicvault.com/pkg/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [cliclick](https://www.automicvault.com/pkg/brew/cliclick/) - Shares av.db curated category or tags: automation, cli, macos, system.
- [dark-mode](https://www.automicvault.com/pkg/brew/dark-mode/) - Shares av.db curated category or tags: cli, macos, system.
- [defaultbrowser](https://www.automicvault.com/pkg/brew/defaultbrowser/) - Shares av.db curated category or tags: cli, macos, system.
- [devcockpit](https://www.automicvault.com/pkg/brew/devcockpit/) - Shares av.db curated category or tags: cli, macos, system.
- [fileicon](https://www.automicvault.com/pkg/brew/fileicon/) - Shares av.db curated category or tags: cli, macos, system.
- [infat](https://www.automicvault.com/pkg/brew/infat/) - Shares av.db curated category or tags: cli, macos, system.
- [launch](https://www.automicvault.com/pkg/brew/launch/) - Shares av.db curated category or tags: cli, macos, system.
- [m-cli](https://www.automicvault.com/pkg/brew/m-cli/) - Shares av.db curated category or tags: automation, cli, macos, system.
- [direvent](https://www.automicvault.com/pkg/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/automic-vault/db/blob/main/combined/sleepwatcher.yml)


## Sources

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