Added Polybar config

This commit is contained in:
Damien Broqua 2020-11-17 13:58:04 +01:00
parent ad74391beb
commit 57b4642ed0
10 changed files with 483 additions and 0 deletions

View file

@ -0,0 +1,12 @@
#!/bin/sh
SERVER="mail.darkou.fr"
NETRC=".netrc"
inbox=$(curl -sf --netrc-file "$NETRC" -X "STATUS INBOX (UNSEEN)" imaps://"$SERVER"/INBOX | tr -d -c "[:digit:]")
if [ "$inbox" ] && [ "$inbox" -gt 0 ]; then
echo "# $inbox"
else
echo "0 unread"
fi