removed numupdates since it was taking too long, moved to a cron job
authorMatthew Owens <matthew@owens.tech>
Thu, 30 Jul 2020 11:45:57 +0000 (12:45 +0100)
committerMatthew Owens <matthew@owens.tech>
Thu, 30 Jul 2020 11:45:57 +0000 (12:45 +0100)
dwmbar

diff --git a/dwmbar b/dwmbar
index 250d37f..65da991 100755 (executable)
--- a/dwmbar
+++ b/dwmbar
@@ -4,7 +4,7 @@
 while true; do
        date=$(date +"%F %T")
        bat=$(bat)
-       updates=$(numupdates)
+       [ -f /tmp/update-count ] && updates=$(cat /tmp/update-count)
        mails=$(mailcount)
        if [[ $updates -ne 0 ]]; then
                pkgs="pkgs: $updates | "