I use Amazing Marvin to track time. This script syncs this to Toggl and optionally beeminder. Usage: $ marvin-timesync 2023-05-01