mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-13 23:49:43 +00:00
14 lines
204 B
Bash
Executable file
14 lines
204 B
Bash
Executable file
#!/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
|