Dotfiles-dwm/dwmbar/modules/mail

15 lines
204 B
Plaintext
Raw Permalink Normal View History

2024-06-02 11:02:06 +00:00
#!/bin/bash
# Prints number of unread mail
# Requires mutt/neomutt
MAIL_DIR="/home/$USER/Mail/INBOX/new/*"
PREFIX=' :'
get_mail()
{
echo "$PREFIX$(du -a $MAIL_DIR 2>/dev/null | wc -l)"
}
get_mail