mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-23 19:02:52 +00:00
Added mail module
This commit is contained in:
parent
c553c5a1b1
commit
8ec45bf4a0
1 changed files with 14 additions and 0 deletions
14
modules/mail
Executable file
14
modules/mail
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/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
|
Loading…
Reference in a new issue