Waybar pkg updates: Show latest run time.

This commit is contained in:
Viyurz 2024-02-15 15:50:58 +01:00
parent c3d39e92ee
commit f576a7224e
No known key found for this signature in database

View file

@ -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