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:
parent
8be614e5e8
commit
9974846fe5
10
README.md
10
README.md
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user