You are not logged in.

#1 2022-12-18 11:30:30

mrwsl
Member
Registered: 2019-10-16
Posts: 11

[SOLVED] Filter dunst notifications by urgency

Is there a way to show only critical notifications with dunst? I only can disable dunst notifications completely but I'd like to have a mode where critical ones are still shown.

Last edited by mrwsl (2022-12-21 08:06:31)

Offline

#2 2022-12-18 15:48:19

seth
Member
Registered: 2012-09-03
Posts: 49,966

Re: [SOLVED] Filter dunst notifications by urgency

https://man.archlinux.org/man/dunst.5.en#RULES and look for "skip_display"

Ftr, I strongly suspect that this is an xy-problem and you want to hide a specific nuisance?
In that case you probably don't want to filter by urgency and you don't have to.

Online

#3 2022-12-18 17:00:00

mrwsl
Member
Registered: 2019-10-16
Posts: 11

Re: [SOLVED] Filter dunst notifications by urgency

Thanks for your reply.

I think I wasn't clear enough, or I don't understand how the mentioned filtering works: I want this filter to be toggled. My normal mode is that I want to receive every notification, but when I toggle the filter, everything except critical notifications (mainly critical low battery level) should be shown. This would be helpful for example when presenting something to others.

The filtering mentioned in the manual seems to be applied as soon as dunst is launched, isn't it?

EDIT: I guess I could restart dunst with a different config everytime I switch between 'privacy' and 'normal' mode. Thanks for the pointer!

Last edited by mrwsl (2022-12-18 17:03:17)

Offline

#4 2022-12-18 17:07:23

seth
Member
Registered: 2012-09-03
Posts: 49,966

Re: [SOLVED] Filter dunst notifications by urgency

No, I didn't get that.
But

dunstctl --help
dunstctl rule <name> toggle

Online

#5 2022-12-21 08:06:06

mrwsl
Member
Registered: 2019-10-16
Posts: 11

Re: [SOLVED] Filter dunst notifications by urgency

Thanks, I should rtfm more. It works like I imagined.

Offline

Board footer

Powered by FluxBB