summaryrefslogtreecommitdiff
path: root/i3blocks-packages.sh
blob: 347a687f8442737b887865795eff9f9dd4a9cb9e (plain) (blame)
1
2
3
4
5
#!/bin/sh
icon=󰏖

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