1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-24 20:27:22 -05:00
dotfiles/cfg/i3blocks/laptop/blocks/packages

14 lines
275 B
Plaintext
Raw Normal View History

2017-07-26 14:00:04 -04:00
#!/usr/bin/bash
URGENT_VALUE=25
PACKAGE_COUNT=$(pacman -Qu | wc -l)
if [[ "${PACKAGE_COUNT}" -gt 0 ]]; then
echo "${PACKAGE_COUNT}" # full-text
echo "${PACKAGE_COUNT}" # short-text
echo ""
if [[ "${PACKAGE_COUNT}" -gt "${URGENT_VALUE}" ]]; then
exit 33
fi
fi