From f576a7224efe69c3953623eee1d51de39e9b266f Mon Sep 17 00:00:00 2001 From: Viyurz <128215328+Viyurz@users.noreply.github.com> Date: Thu, 15 Feb 2024 15:50:58 +0100 Subject: [PATCH] Waybar pkg updates: Show latest run time. --- .scripts/waybar-pkg-update-count.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.scripts/waybar-pkg-update-count.sh b/.scripts/waybar-pkg-update-count.sh index 12509f3..ed7b0e1 100755 --- a/.scripts/waybar-pkg-update-count.sh +++ b/.scripts/waybar-pkg-update-count.sh @@ -39,6 +39,11 @@ while [[ $retry_count -le $max_retries && $success -ne 1 ]]; do done +# Show time of check +time="$(date '+%H:%M:%S')" +tooltip="$tooltip\nLatest check: $time" + + cat << EOF {"text": "$output", "alt": "$class", "tooltip": "$tooltip", "class": "$class"} EOF