You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.
A function that will be called when the battery state changes. The function should accept no arguments.
Returns
An hs.battery.watcher object
Notes
Because the callback function accepts no arguments, tracking of state of changing battery attributes is the responsibility of the user (see Hammerspoon/hammerspoon#166 for discussion)