aw-watcher-window
aw-watcher-window copied to clipboard
Feat: add regex-based title cleaning rules configuration and implementation
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()inmain.pyandget_title_cleaning_rules()inconfig.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, andreplacementfields.- Documentation:
- Updated
README.mdwith instructions for configuring title cleaning rules.This description was created by
for 18e1877039e9a03faaa58b5fd0c8ec298b8e491a. You can customize this summary. It will automatically update as commits are pushed.