awesomeWM / awesome

awesome window manager
https://awesomewm.org/
GNU General Public License v2.0
6.41k stars 598 forks source link

How to make new notifications update to existing notifications? #3921

Closed ShadeZerox closed 6 months ago

ShadeZerox commented 6 months ago

image

This small script uses dunstify to send notifications, now if i'd have to use dunst, it would update the new text into the first notification instead of outputting 5 notifications separately. How can I replicate that in naughty?

actionless commented 6 months ago

save notification to an object and edit properties of it, see documentation for naughty

actionless commented 6 months ago

https://github.com/actionless/awesome_config/blob/master/actionless/widgets/music/widget.lua#L204-L212