On macOS Ventura I installed sleepwatcher using homebrew and activated the service using
brew services start sleepwatcher
. Strange enough it asked for permissions to watch all keystrokes. Ignoring this security issue for now, I granted the permission, but it appears the service is not working. As per the documentation I created bash scripts .sleep
and .wakeup
in my home directory, but nothing in these files gets executed. I checked and it looks like the relevant LaunchAgent is correctly placed in ~/Library/LaunchAgents/
Is anyone successfully running sleepwatcher on macOS Ventura?
ps ax |grep sleepw
yields/opt/homebrew/opt/sleepwatcher/sbin/sleepwatcher -V -s /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/home/.sleep -w /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/home/.wakeup
. But even if I create those files/folders, sleep&watch doesn't seem to work.