From 2f4c2a68a1cbebb0e06a5b3296e4bbb575c5fcb2 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 5 Nov 2018 17:51:24 -0500 Subject: scripts sorted --- .scripts/statusbar/i3mail | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .scripts/statusbar/i3mail (limited to '.scripts/statusbar/i3mail') diff --git a/.scripts/statusbar/i3mail b/.scripts/statusbar/i3mail new file mode 100755 index 0000000..e80df86 --- /dev/null +++ b/.scripts/statusbar/i3mail @@ -0,0 +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 ;; +esac + +echo "$(du -a ~/.mail/*/INBOX/new/* | sed -n '$=')" $(cat ~/.config/mutt/.dl) -- cgit v1.3.1