dotfiles/.i3blocks/updates

17 lines
282 B
Text
Raw Normal View History

#!/usr/bin/env bash
if [ -f /dev/shm/claws_offline ]
then
echo "<span foreground=\"#F2777A\">█</span>"
exit
fi
avail=$(checkupdates | wc -l)
if [[ $avail -eq 0 ]]
then
echo "<span foreground=\"#99CC99\">█</span>"
else
echo "<span foreground=\"#FFCC66\">█</span>"
fi