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