I've liked the focused window tracker in https://activitywatch.net