Dunst是一个notification-daemon,同类的软件包有很多,其中之一是extra/notification-daemon,如果没注意,你可能默认用的就是这个软件包。当安装了多个notification-daemon的时候,他们都会宣称自己提供了同个dbus service (org.freedesktop.Notifications),导致冲突,默认会用一个,但具体规则我不清楚1

yychi@/usr/share/dbus-1/services> grep org.freedesktop.Notifications *
org.freedesktop.Notifications.service:Name=org.freedesktop.Notifications
org.knopwob.dunst.service:Name=org.freedesktop.Notifications 

因此,最好保证这里只有一个提供这个service.

notification-daemon作为守护进程,接受客户端(libnotify包中提供的notify-send)的通知请求,按照规则显示通知。除此之外,dunst还提供dunstify(完全兼容notify-send)来发送通知以及dunstctl来配置dunst.

dunst作为守护进程,可以配置通知的样式。从官网[showcase][1]中直接拿一个来用,简单改改即可。凑合看看,比之前默认的好看不少。猛击[这里][2]获取配置。

Footnotes

  1. 参考:https://wiki.archlinux.org/title/Dunst
    关于启动的描述和这个问题帖:https://bbs.archlinux.org/viewtopic.php?id=289214 [1]: https://dunst-project.org/showcase/ [2]: https://github.com/guyueshui/dotfiles/blob/master/.config/dunst/dunstrc