As it stands right now xfce4-notifyd, more specifically notify-send, does not have an option to update a preexisting notification, rather than creating a new one. For example, I have a script to adjust pulseaudio volume. If I want to display the current volume as I'm changing it, I have to create a constant stream of new notifications as the volume changes. Instead it would be ideal if I could instead create a notification, then change it on-the-fly using some sort of identifier. Once it goes unchanged for the timeout period, it should then be dismissed. Some sort of unique identifier would be necessary for each notification, so that you can specifically target a popup.
As of now xfce4-volumed notifications works just like this. Check the code here: http://git.xfce.org/apps/xfce4-volumed/tree/src/xvd_notify.c#n28 Here is a python3 example: #!/usr/bin/python import time from gi.repository import Notify Notify.init ("Hello world") Hello=Notify.Notification.new ("Hello world","This is an example notification.","dialog-information") Hello.show () time.sleep(2) Hello.update("Good bye world","This is the updated notification.","dialog-warning") Hello.show ()
Should be fixed for quite a while already (as André noted).