#!/bin/sh icon=󰏖 package_count=$(pkg upgrade -n | tail -1 | cut -s -d':' -f2 | cut -w -f2) [ -n "$package_count" ] && [ "$package_count" -gt 0 ] && printf "%s%s" $icon $package_count && notify-send "$package_count package upgrade(s) available" printf "\n"