dotfiles/.local/bin/statusbar/pacpackages
2020-07-17 15:05:59 +02:00

10 lines
345 B
Bash
Executable File

#!/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]" )"
echo "$no" | sed "s/^/📦/;s/^📦0$//g"