#!/bin/sh # Syncs repositories and downloads updates, meant to be run as a cronjob. export STATUSBAR="i3blocks" doas 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+8 "$STATUSBAR" if pacman -Qu | rg -v "\[ignored\]"; then notify-send "Repository Sync" "Updates available." pkill -RTMIN+8 "$STATUSBAR" fi