You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a custom Waybar module that displays notifications count via dunstctl and on click it pops the latest notification from history. Whenever a new notification is received a custom script is executed to send a signal to Waybar to update the notification count.
But the problem is that dunst doesn't have any proper custom script execution on clicking on a notification (i.e. closing it). For normal notifications, I use the following code to send a signal to waybar for notifications whenever a notification is closed:
While this works for normal notifications, it doesn't work for notifications retrieved from history as those do not emit a DBUS event (see #1352).
Though I think that the proper solution here is not to finish #1352, but to be able to execute a custom script on clicking on a notification similarly to the following when receiving a notification:
Issue description
I have a custom Waybar module that displays notifications count via
dunstctl
and on click it pops the latest notification from history. Whenever a new notification is received a custom script is executed to send a signal to Waybar to update the notification count.But the problem is that
dunst
doesn't have any proper custom script execution on clicking on a notification (i.e. closing it). For normal notifications, I use the following code to send a signal to waybar for notifications whenever a notification is closed:While this works for normal notifications, it doesn't work for notifications retrieved from history as those do not emit a DBUS event (see #1352).
Though I think that the proper solution here is not to finish #1352, but to be able to execute a custom script on clicking on a notification similarly to the following when receiving a notification:
Installation info
package
Hyprland
Fedora 40
Minimal dunstrc
Note: I'd be interested in implementing this feature myself if that is fine.
The text was updated successfully, but these errors were encountered: