Add icon when packages are syncing

This commit is contained in:
samedamci 2020-05-14 13:30:45 +02:00
parent 0370b179f7
commit 75a9ee9bae
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894
3 changed files with 7 additions and 2 deletions

View File

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

View File

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

View File

@ -1,3 +1,4 @@
#!/bin/sh
echo " $(pacman -Qu | wc -l)"
icon="$(cat /tmp/packagesupdate 2>/dev/null)"
echo " $(pacman -Qu | wc -l)$icon"