macOS
brew install sleepwatcherlocal Homebrew formula metadata
sudo port install sleepwatcherMacPorts ports tree · sysutils/sleepwatcher/Portfile · 来源: api.github.com
安装
brew install sleepwatcherlocal Homebrew formula metadata
sudo port install sleepwatcherMacPorts ports tree · sysutils/sleepwatcher/Portfile · 来源: api.github.com
nix profile install nixpkgs#sleepwatchernixpkgs package indexes · pkgs/by-name/sl/sleepwatcher/package.nix · 来源: api.github.com
概览
Monitors sleep, wakeup, and idleness of a Mac
历史
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.
安全态势
formula declares a Homebrew service.
orange 风险 · 中 置信度 · infrastructure
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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.plist可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
sleepwatcher | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://www.bernhard-baehr.de/
安装元数据
| 软件包键 | brew:sleepwatcher |
|---|---|
| 版本 | 2.2.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/sleepwatcher |
| 主页 | https://www.bernhard-baehr.de/ |
| 上游文档 | https://www.bernhard-baehr.de/ |
| 许可证 | GPL-3.0-or-later |
| 源码归档 | https://www.bernhard-baehr.de/sleepwatcher_2.2.1.tgz |
| 最后更新 | 2026-09-13T02:34:49Z |
| Pulse | updated |
| Bottle | 可用 (于 arm64_big_sur, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura) |
| Homebrew post-install | 未定义 |
| 服务 | declared |
| 注意事项 | For SleepWatcher to work, you will need to write sleep and wakeup scripts, located here when using brew services: ~/.sleep ~/.wakeup |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
sleepwatcher
nix profile install nixpkgs#sleepwatchersleepwatcher
sudo port install sleepwatcher来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.