dotfiles/.i3blocks/updates

16 lines
248 B
Text
Raw Normal View History

#!/usr/bin/env bash
avail=$(checkupdates | wc -l )
aur=$(yaourt -Qua | grep 'aur/' | wc -l)
if [[ $(($aur+$avail)) -eq 0 ]]
then
echo "0 màj"
echo ok
echo "#99cc99"
else
echo "$avail màj"
echo "$avail"
echo "#f99157"
fi