summaryrefslogblamecommitdiff
path: root/i3blocks-packages.sh
blob: 3717a011633fa3ae88e43cc33ab8fc86f1d4c333 (plain) (tree)
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 && notify-send "$package_count package upgrades available"