pkg.soopen package index

brew / 排名 1857

使用 Homebrew, MacPorts, Nix 安装 sleepwatcher

查看 sleepwatcher 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install sleepwatcher

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install sleepwatcher

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

Linux

Nix已验证 · 92%
nix profile install nixpkgs#sleepwatcher

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

概览

软件包摘要

Monitors sleep, wakeup, and idleness of a Mac

命令和别名

  • sleepwatcher

历史

项目历史与用法

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.

时间线

  • 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

安全态势

风险级别:orange

formula declares a Homebrew service.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • formula declares a Homebrew service

信号

  • metadata:service

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • formula 元数据声明了服务或守护进程块。
  • Homebrew bottle 元数据适用于 10 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
sleepwatchercli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-09-19
管理器版本2.2.1
管理器更新时间2026-09-13
本地数据OK
上游not checked
检测到的最新版本未检测到

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
Pulseupdated
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 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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

sleepwatcher

nix profile install nixpkgs#sleepwatcher
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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