fix: move archlinux-check-updates to cronjob

This commit is contained in:
Tobias Reisinger 2020-09-03 11:23:42 +02:00
parent f2c7dee45d
commit 98a74f6279
2 changed files with 2 additions and 2 deletions

View file

@ -12,8 +12,8 @@
[module/check-arch-updates]
type = custom/script
exec = $HOME/.config/polybar/scripts/check-arch-updates.sh
interval = 300
exec = cat $HOME/.cache/archlinux-updates.txt
interval = 30
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}

View file

@ -1,9 +0,0 @@
#!/bin/sh
pkg_updates_count=$(checkupdates 2> /dev/null | wc -l)
if [ $((pkg_updates_count)) -gt 0 ]
then
echo $pkg_updates_count
else
echo ""
fi