Add icon when packages are syncing

This commit is contained in:
Wiktor Zykubek 2020-05-14 13:30:45 +02:00
parent 4c9714c4c1
commit 8016736cc8
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 ping -q -c 1 1.1.1.1 > /dev/null || exit 1
echo " " > /tmp/packagesupdate
refbar &
pacman -Syyuw --noconfirm pacman -Syyuw --noconfirm
rm -f /tmp/packagesupdate
refbar &

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/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 rate --save /etc/pacman.d/mirrorlist

View File

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