From 1e5058595930780b2a118f06030649fafed0f09f Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Sun, 12 Jan 2025 12:12:15 -0300 Subject: [PATCH] :boom: hypr(scripts): actually clear notifications if error occurred in handler --- hypr/scripts/notification-handler-daemon.sh | 1 + hypr/scripts/{volume-popup.sh => trigger-volume-popup.sh} | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) rename hypr/scripts/{volume-popup.sh => trigger-volume-popup.sh} (99%) diff --git a/hypr/scripts/notification-handler-daemon.sh b/hypr/scripts/notification-handler-daemon.sh index 2bd0c85..02e3f14 100644 --- a/hypr/scripts/notification-handler-daemon.sh +++ b/hypr/scripts/notification-handler-daemon.sh @@ -27,6 +27,7 @@ function Restart_handler() { wait $pid_handler && Exit_daemon || \ (Send_log "error" "An error occurred and handler stopped" Send_log "info" "Clearing history and starting handler again." + sh $HOME/.config/eww/scripts/notification-clear.sh & Restart_handler) } diff --git a/hypr/scripts/volume-popup.sh b/hypr/scripts/trigger-volume-popup.sh similarity index 99% rename from hypr/scripts/volume-popup.sh rename to hypr/scripts/trigger-volume-popup.sh index 555f8b0..76b7e84 100644 --- a/hypr/scripts/volume-popup.sh +++ b/hypr/scripts/trigger-volume-popup.sh @@ -6,4 +6,3 @@ # Made by retrozinndev (João Dias) # From https://github.com/retrozinndev/Hyprland-Dots -