diff options
Diffstat (limited to 'ar/.local/bin/cron/checkup')
| -rwxr-xr-x | ar/.local/bin/cron/checkup | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ar/.local/bin/cron/checkup b/ar/.local/bin/cron/checkup index 2ea6772..86cba4a 100755 --- a/ar/.local/bin/cron/checkup +++ b/ar/.local/bin/cron/checkup @@ -1,13 +1,14 @@ #!/bin/sh # Syncs repositories and downloads updates, meant to be run as a cronjob. +# /usr/share/libalpm/hooks/statusbar.hook notify-send "📦 Repository Sync" "Checking for package updates..." sudo pacman -Syyuw --noconfirm || notify-send "⛔ Error downloading updates. Check your internet connection, if pacman is already running, or run update manually to see errors." -pkill -RTMIN+14 "${STATUSBAR:-dwmblocks}" +pkill -RTMIN+11 "${STATUSBAR:-dwmblocks}" if pacman -Qu | grep -v "\[ignored\]"; then notify-send "🎁 Repository Sync" "Updates available. Click statusbar icon (📦) or run sb-popupgrade in terminal for update." |
