swaydots

my dotfiles
git clone https://git.awy.one/swaydots.git
Log | Files | Refs | README | LICENSE

checkup (603B)


      1 #!/bin/sh
      2 
      3 # Syncs repositories and downloads updates, meant to be run as a cronjob.
      4 
      5 notify-send "📦 Repository Sync" "Checking for package updates..."
      6 
      7 sudo pacman -Syyuw --noconfirm || notify-send "Error downloading updates.
      8 
      9 Check your internet connection, if pacman is already running, or run update manually to see errors."
     10 pkill -RTMIN+8 "${STATUSBAR:-i3blocks}"
     11 
     12 if pacman -Qu | grep -v "\[ignored\]"
     13 then
     14 	notify-send "🎁 Repository Sync" "Updates available. Click statusbar icon (📦) for update."
     15 else
     16 	notify-send "📦 Repository Sync"  "Sync complete. No new packages for update."
     17 fi