summaryrefslogtreecommitdiff
path: root/i3/.config/i3blocks/bin/email
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-02-21 12:18:32 +0000
committerUrbain Vaes <urbain@vaes.uk>2018-02-21 16:46:29 +0000
commitb9ea238dd7e8a56b1d171cdc76e405bb2a8584dd (patch)
treed693deb61965b724cd8630e0a061e5e762341c9c /i3/.config/i3blocks/bin/email
parent68d822599f074c24505eea2329bfc80e2745feab (diff)
Improve i3 status
Diffstat (limited to 'i3/.config/i3blocks/bin/email')
-rwxr-xr-xi3/.config/i3blocks/bin/email5
1 files changed, 2 insertions, 3 deletions
diff --git a/i3/.config/i3blocks/bin/email b/i3/.config/i3blocks/bin/email
index ab875e0..f83f4b0 100755
--- a/i3/.config/i3blocks/bin/email
+++ b/i3/.config/i3blocks/bin/email
@@ -1,10 +1,9 @@
#!/usr/bin/env bash
nMails=$(find $HOME/.mail -path '*/new/*' -type f -not -path '*/rss/*' -not -path '*/lists/*' | wc -l)
-echo -e "${nMails}\n${nMails}"
if [[ ${nMails} -eq 0 ]]; then
- echo \#FFFFFF
+ echo -e "<span color='gray'></span> ${nMails}"
else
- echo \#00FF00
+ echo -e "<span color='#00FF00'> ${nMails}</span>"
fi