Skip to content

Track active window, not just running processes #6

@1j01

Description

@1j01

There's a package active-window (repo) that looks to be just enough to be able to do this, and no more, assuming it works well enough. Which it might not, looking at the issues. But there are several PRs addressing the issues, and even if they aren't merged in the main repo, they could still be used in a fork.

We'd want to do regex matching generally anchored on the end of the title, e.g. /.* - Sublime Text( \(UNREGISTERED\))?$/ to avoid matching for example Sublime Text - Download - Google Chrome.

Also you'll get noisier data when tracking the active window, such as when switching between your IDE and a program you're working on, or documentation etc. so it would probably be good to automatically connecting the spans of time labeled as programming, but that could happen later when displaying/graphing the data, or earlier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions