voidrice/.scripts/statusbar/i3mail
2018-11-05 17:51:24 -05: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)