sysutils/sleepwatcher - The NetBSD Packages Collection

Run a Unix command on macOS sleep or wake events

SleepWatcher is a daemon for macOS that monitors sleep, wakeup and
idleness of a Mac. It can be used to execute a Unix command when the Mac
or the display of the Mac goes to sleep mode or wakes up, after a given
time without user interaction or when the user resumes activity after a
break or when the power supply of a Mac notebook is attached or
detached. It also can send the Mac to sleep mode or retrieve the time
since last user activity.

Build dependencies

pkgtools/mktools pkgtools/cwrappers

Runtime dependencies


Binary packages


Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options


Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.

Problem reports, updates or suggestions for this package should be reported with send-pr.