#!/bin/sh icon=󰏖 count=$(pkg upgrade -n | sed -n 's/^Number of packages to be installed:\(.*\)/\1/p') [ -n "$count" ] && [ "$count" -gt 0 ] && printf "%s%s" $icon $count && notify-send "$count package upgrade(s) available" printf "\n"