dotfiles/.local/bin/statusbar/getmail

5 lines
124 B
Bash
Executable File

#!/bin/bash
num=$(find ~/.local/share/mail/*/INBOX/new -type f | wc -l)
[ $num != 0 ] && printf "📬%s" "$num"
printf '\n'