Bug 454076 - Filter out notifications based on their content using keywords or regular expressions
Summary: Filter out notifications based on their content using keywords or regular exp...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: 5.24.5
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-20 09:20 UTC by Raphaël Jakse
Modified: 2022-05-23 16:09 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphaël Jakse 2022-05-20 09:20:15 UTC
SUMMARY

I'd like to be able to define sub-strings, keywords or regular expressions that will make Plasma not show notifications whose content match the filter. 

Use case: I'm using a chat application and people are celebrating something on some days (say, a birthday or an anniversary). These messages are warm and very much welcome. However, they don't require immediate attention and notifications for these messages are just noise.

The chat application doesn't support such filtering. It would also make sense to have a centralized place to define such filters. Ideally, one would be able to set a filter for a particular application, or restricted to some notification title. I'm imagining something like KWin's feature that allows to define fine-tuned window rules to match windows.

OBSERVED RESULT

I'm notified for these messages that don't require immediate attention.

EXPECTED RESULT

I can define some keywords matching these messages to block these notifications. The notifications could still be shown in the notification tray, but don't produce a popup.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220518
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

Related: https://github.com/vector-im/element-web/issues/22291
Comment 1 Nate Graham 2022-05-23 16:09:16 UTC
This seems like a very niche feature that mostly lets you manually work around bugs in notification-sending apps. Not sure how likely it is that it'll be implemented. Probably a "patches welcome" sort of thing.