diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-09-04 14:15:28 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2018-09-04 14:15:28 -0400 |
| commit | a8c46a59a199abc4fc8927d8aacd6c25cddc44f0 (patch) | |
| tree | 6a306fbe3b99e28fc1ec371b9b6516955829413a /.scripts/i3mail | |
| parent | e6269722e9246a0a26db7aceb5a2ad2322046951 (diff) | |
| download | eibhear-a8c46a59a199abc4fc8927d8aacd6c25cddc44f0.tar.gz eibhear-a8c46a59a199abc4fc8927d8aacd6c25cddc44f0.tar.zst eibhear-a8c46a59a199abc4fc8927d8aacd6c25cddc44f0.zip | |
i3mail uses du -a now for autism
Diffstat (limited to '.scripts/i3mail')
| -rwxr-xr-x | .scripts/i3mail | 10 |
1 files changed, 8 insertions, 2 deletions
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) |
