diff --git a/.scripts/i3mail b/.scripts/i3mail index 46ad432..e80df86 100755 --- a/.scripts/i3mail +++ b/.scripts/i3mail @@ -1,5 +1,11 @@ #!/bin/sh + +# i3blocks mail module. +# Displays number of unread mail and an loading icon if updating. +# When clicked, brings up `neomutt`. + case $BLOCK_BUTTON in - 1) $TERMINAL -e neomutt ;; + 1) $TERMINAL -e neomutt ;; esac -echo $(find ~/.mail -wholename */INBOX/new/* | sed -n '$=') $(cat ~/.config/mutt/.dl) + +echo "$(du -a ~/.mail/*/INBOX/new/* | sed -n '$=')" $(cat ~/.config/mutt/.dl)