I recently started using org's clock features, however after repeatedly forgetting to clock out after closing my laptop, I decided to set up an automated clock-out on sleep.
brew install sleepwatcher
(if not already installed)- Create file at
~/.sleep
with the following contents:
#!/usr/bin/env bash