Added Polybar config
This commit is contained in:
parent
ad74391beb
commit
57b4642ed0
10 changed files with 483 additions and 0 deletions
12
config/polybar/scripts/inbox-imap-shellnetrc.sh
Executable file
12
config/polybar/scripts/inbox-imap-shellnetrc.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue