From 2013dfe20dea9f0b38a013137e6d6f9150f0a81a Mon Sep 17 00:00:00 2001 From: Viyurz Date: Tue, 19 Nov 2024 10:14:53 +0100 Subject: [PATCH] fix(waybar-hook): Return code 0 when waybar is not running --- .scripts/refresh-waybar-pkg-update-count.hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scripts/refresh-waybar-pkg-update-count.hook b/.scripts/refresh-waybar-pkg-update-count.hook index 78da4fa..e001b84 100644 --- a/.scripts/refresh-waybar-pkg-update-count.hook +++ b/.scripts/refresh-waybar-pkg-update-count.hook @@ -7,4 +7,4 @@ Target = * [Action] When = PostTransaction -Exec = /bin/pkill -SIGRTMIN+3 -u 1000 waybar +Exec = /bin/sh -c '! /bin/pgrep -u 1000 waybar || /bin/pkill -SIGRTMIN+3 -u 1000 waybar'