summaryrefslogblamecommitdiff
path: root/i3blocks-packages.sh
blob: 992fc379594c5f78da0c8fd84b0b5bfb4375cdf9 (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 upgrade(s) available"