I’ve recently started using Toggl to track time spent on various things. But I usually forget to turn it on when I’m actually working.
The script can be found here:
Do remember to
chmod +x the JS file and include it as a segment in your status
A screenshot for completeness: