2020-05-14 11:13:54 +02:00
|
|
|
#!/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)"
|
|
|
|
|
2020-05-17 11:18:58 +02:00
|
|
|
[ "$unread" -gt "0" ] && echo " $unread" || echo ""
|
2020-05-16 18:45:33 +02:00
|
|
|
echo "$icon"
|