From 093ce80210afbbb459bb4ad22957e579d23c0cee Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Mon, 12 Aug 2024 09:03:28 +0200 Subject: [PATCH] checkup: expire notification after 4 seconds --- .local/libexec/cron/checkup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.local/libexec/cron/checkup b/.local/libexec/cron/checkup index dfcd96ad4..ec24c35a2 100755 --- a/.local/libexec/cron/checkup +++ b/.local/libexec/cron/checkup @@ -1,12 +1,12 @@ #!/bin/sh -pkill -RTMIN+1 dwmblocks - \xbps-install -SMun 1>/tmp/xbps_updates 2>/tmp/xbps_errors ne="$(grep -c broken /tmp/xbps_errors)" n="$(grep -c -e update -e install /tmp/xbps_updates)" if [ "$n" != "0" ] && [ "$ne" != "0" ]; then notify-send -c updates -u critical " Repository Sync" "Error downloading updates: $(cut -d " " -f 1,5 /tmp/xbps_errors)" elif [ "$n" -gt 1 ] && [ "$ne" = "0" ]; then - notify-send -c updates " Repository Sync" "Updates available: $n" + notify-send -t 4000 -c updates " Repository Sync" "Updates available: $n" fi + +pkill -RTMIN+1 dwmblocks