I’m very pleased with my latest script and wanted to share with those that would appreciate it too.
I have an ahk script running on my machine that watches the window titles and if a keyword in that title matches a list of keywords I have designated for a project, it starts the timer in Toggl through a simple API call.
If the window changes to another window that matches the same project, it just keeps on truckin’.
I have also made it possible for me to flag windows as neutral. Meaning, if a timer is running and a neutral window is up, it doesn’t stop nor start a timer.
If I switch to a different window related to another project, then the timer for that will start seamlessly.
All projects are kept in Toggl, and keyword data is located on a file and they are merged together when the tracker starts. I was thinking of moving the keywords to labels in Toggl so everything could be kept there, but I don’t want to pollute the Toggl environment. I would love to hear suggestions on what I could do about this so I don’t have to have data stored locally.
Anyway, I’m pretty proud of this one. Thought I would share!