dunst icon indicating copy to clipboard operation
dunst copied to clipboard

Feature request: dunstctl close notifications based on conditions

Open febs opened this issue 1 year ago • 2 comments

It would be handy to be able to se dunstctly to only close notifications pertaining a single app, or all the notifications containing a specified text/pattern.

also apparently the history-rm command is not documented in the docs folder of the source code.

Thanks!

febs avatar Dec 22 '23 11:12 febs

This is an interesting idea. As a future reference: It can be done by defining a new dbus method similar to NotificationCloseLast that accepts a string and matches against that. Maybe two different methods, one matching the title and the other the body/everything.

Anyway if I get some spare time I'll try it

bynect avatar Feb 19 '24 23:02 bynect

I have a proposal for a (I think) more extensible approach: provide a new method for listing currently displayed notifications (like NotificationListHistory; this could be reused by just using a different queue to pick from). Then a client could use that output to apply its own rules for filtering and then issue calls to the already existing CloseNotification.

zappolowski avatar May 01 '24 18:05 zappolowski