Add new 'mails' bar module

This commit is contained in:
samedamci 2020-05-14 11:13:54 +02:00
parent 5dbaa126db
commit 47819d5580
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894

View File

@ -0,0 +1,9 @@
#!/bin/sh
# Modified Luke Smith's script.
unread="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/[Ii][Nn][Bb][Oo][Xx]/new/* -type f | wc -l 2>/dev/null)"
icon="$(cat "/tmp/imapsyncicon_$USER" 2>/dev/null)"
[ "$unread" = "0" ] && [ "$icon" = "" ] || echo " $unread$icon"