Skip to content

v0.2.12 - Window Title Tracking

Choose a tag to compare

@DGouron DGouron released this 12 Jan 20:13

Features

Window Title Tracking

  • Track time spent per window title, not just per application
  • Distinguish between Firefox on localhost (dev work) vs YouTube (distraction)
  • Title breakdown displayed under each application in the GUI

Title-Based Distraction Detection

  • New title_patterns config option to detect distractions by window title
  • Example: title_patterns = ["youtube", "reddit", "twitter"] marks any window with these words as distraction

Technical Changes

  • X11: Read _NET_WM_NAME and WM_NAME window properties
  • Database: Auto-migration adds window_title column to app_tracking table
  • New composite primary key: (session_id, application_name, window_title)

Configuration Example

[distractions]
apps = ["discord", "slack"]
title_patterns = ["youtube", "reddit", "twitter", "linkedin"]