Alexander Bocken
8d9d340641
modified: .config/nvim/init.vim modified: .config/shortcutrc modified: .config/zsh/.zshrc modified: .local/bin/statusbar/pacpackages modified: .local/bin/tools/startmpv
11 lines
373 B
Bash
Executable File
11 lines
373 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]" )"
|
|
[ "$no" -gt 0 ] && ( echo "$no" | sed "s/^/📦/"; exit )
|
|
printf '\n'
|