aw-watcher-window icon indicating copy to clipboard operation
aw-watcher-window copied to clipboard

Feat: add regex-based title cleaning rules configuration and implementation

Open AminZibayi opened this issue 8 months ago • 0 comments

You can configure regex-based title cleaning rules to modify window titles before they are sent to the server. This is useful for removing application-specific suffixes, temporary states (like unread message counts), or other noisy data from window titles, leading to cleaner and more accurate data aggregation.


[!IMPORTANT] Add regex-based title cleaning rules to modify window titles before sending to server, with configuration and documentation updates.

  • Feature:
    • Add regex-based title cleaning rules to modify window titles before sending to server.
    • Implemented in clean_window_title() in main.py and get_title_cleaning_rules() in config.py.
    • Configuration examples added to example-config.toml.
  • Configuration:
    • Users can define rules in ~/.config/activitywatch/aw-watcher-window.toml.
    • Each rule includes app, pattern, and replacement fields.
  • Documentation:
    • Updated README.md with instructions for configuring title cleaning rules.

This description was created by Ellipsis for 18e1877039e9a03faaa58b5fd0c8ec298b8e491a. You can customize this summary. It will automatically update as commits are pushed.

AminZibayi avatar Jun 28 '25 17:06 AminZibayi