1
0
mirror of https://github.com/alrayyes/i3blocks synced 2023-11-13 18:16:40 +00:00

added rest of gmail code

This commit is contained in:
Ryan 2016-11-21 22:51:37 +01:00
parent 8be614e5e8
commit 9974846fe5

View File

@ -85,6 +85,16 @@ if [[ ! -f "${CONFIG_FILE}" ]]; then
echo "${CONFIG_FILE}"
exit 33
fi
source "${CONFIG_FILE}"
COUNT=`curl -su $MAIL_USER:$MAIL_PASSWORD https://mail.google.com/mail/feed/atom || echo "<fullcount>unknown number of</fullcount>"`
COUNT=`echo "$COUNT" | grep -oPm1 "(?<=<fullcount>)[^<]+" `
if [ "$COUNT" = "0" ]; then
echo ""
else
echo $COUNT
fi
```
## i3blocks config