scripts/void/xcheckupdates

10 lines
270 B
Plaintext
Raw Normal View History

2021-01-11 11:33:15 +00:00
#!/bin/zsh
ICON=/usr/share/icons/Paper/16x16/status/software-update-available.png
updates=$(xbps-install -Sun | wc -l)
if [[ $updates -gt 0 ]]; then
notify-send --icon=$ICON -t 0 "$updates Updates available"
else
notify-send -t 1500 "Updates checked, nothing new"
fi