major springcleaning
This commit is contained in:
10
.local/bin/statusbar/sb-pacpackages
Executable file
10
.local/bin/statusbar/sb-pacpackages
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Displays number of upgradeable packages.
|
||||
# For this to work, have a `pacman -Sy` command run in the background as a
|
||||
# cronjob every so often as root. This script will then read those packages.
|
||||
# When clicked, it will run an upgrade via pacman.
|
||||
|
||||
no="$( pacman -Qu | grep -Fcv "[ignored]" )"
|
||||
[ "$no" -gt 0 ] && printf '📦%s' "$no"
|
||||
printf '\n'
|
Reference in New Issue
Block a user