helm/os/+arch/.config/polybar/modules/updates
2017-04-28 01:39:18 -04:00

11 lines
197 B
Bash
Executable file

#!/bin/bash
pac=$(checkupdates | wc -l)
aur=$(cower -u | wc -l)
check=$((pac + aur))
if [[ "$check" != "0" ]]; then
echo "$pac %{F#5b5b5b}%{F-} $aur"
else
echo "%{F#5b5b5b}%{F-}"
fi