voidrice/.scripts/i3mail
2018-09-04 14:15:28 -04:00

11 lines
273 B
Bash
Executable file

#!/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 ;;
esac
echo "$(du -a ~/.mail/*/INBOX/new/* | sed -n '$=')" $(cat ~/.config/mutt/.dl)