Add dotfiles
This commit is contained in:
parent
49bfe1a4d3
commit
b6e01a720b
52 changed files with 4701 additions and 0 deletions
14
dwmbar/modules/mail
Executable file
14
dwmbar/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…
Add table
Add a link
Reference in a new issue