diff --git a/.local/bin/cron/checkup b/.local/bin/cron/checkup index fa81ceb..bd711e8 100755 --- a/.local/bin/cron/checkup +++ b/.local/bin/cron/checkup @@ -2,4 +2,8 @@ ping -q -c 1 1.1.1.1 > /dev/null || exit 1 +echo " " > /tmp/packagesupdate +refbar & pacman -Syyuw --noconfirm +rm -f /tmp/packagesupdate +refbar & diff --git a/.local/bin/cron/mirrors b/.local/bin/cron/mirrors index 39ba55e..114b933 100755 --- a/.local/bin/cron/mirrors +++ b/.local/bin/cron/mirrors @@ -1,4 +1,4 @@ #!/bin/sh -sudo reflector --latest 200 --protocol http --protocol https --sort \ +reflector --latest 200 --protocol http --protocol https --sort \ rate --save /etc/pacman.d/mirrorlist diff --git a/.local/bin/scripts/dwmbar/packages b/.local/bin/scripts/dwmbar/packages index c3368b4..489234e 100755 --- a/.local/bin/scripts/dwmbar/packages +++ b/.local/bin/scripts/dwmbar/packages @@ -1,3 +1,4 @@ #!/bin/sh -echo " $(pacman -Qu | wc -l)" +icon="$(cat /tmp/packagesupdate 2>/dev/null)" +echo " $(pacman -Qu | wc -l)$icon"