commit 4de8dd711de2e7a2f43108b3c3824306b4f3d187
parent 464353f5b875f01539598c4f8207501ad21ef1c4
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 19 Feb 2019 08:16:07 +0100
Do not show mail status if there are no mails
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/links/.config/i3/i3scripts/i3mail b/links/.config/i3/i3scripts/i3mail
@@ -17,10 +17,11 @@ esac
mailstatus="$(mailstatus.sh | sed 's/\#\[.*]M: //')"
if [[ "$mailstatus" =~ '0' ]]; then
- color="white"
+ exit
+ color="white"
style="normal"
else
- color="#fabd2f"
+ color="#fabd2f"
style="normal"
fi