all repos — dotfiles @ d4b24551d14e6ee1c23588d3e4cc6c26d34afcf8

linux dotfiles

bin/cron/pacupdate-cron (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
#!/usr/bin/bash

 ping -q -c 1 google.com >/dev/null || exit
[ "$1" = "-u" ] && sudo pacman -Sy
count=$(pacman -Qu | wc -l)

[ $count -gt 0 ] && notify-send \
	"$count package updates available"

pkill -SIGRTMIN+8 i3blocks