From: Matthew Owens Date: Thu, 30 Jul 2020 11:30:37 +0000 (+0100) Subject: added packages to dwmbar X-Git-Url: https://git.owens.tech///git?a=commitdiff_plain;h=dd1ce863c190b228adcb96019830669e2add9346;p=scripts.git added packages to dwmbar --- diff --git a/dwmbar b/dwmbar index 7095e6f..6d71e75 100755 --- a/dwmbar +++ b/dwmbar @@ -4,7 +4,11 @@ while true; do date=$(date +"%F %T") bat=$(bat) + updates=$(numupdates) + if [[ $updates -ne 0 ]]; then + pkgs="pkgs: $updates |" + fi - xsetroot -name "$bat | $date" + xsetroot -name "$pkgs $bat | $date" sleep 1s done