SleepWatcher
Free
SleepWatcher is a macOS command-line daemon that monitors sleep, wake, and user idle states, triggering custom automation scripts. Enable your Mac to execute predefined tasks when system events occur, achieving smarter power management and automated workflows.