diff options
author | Urbain Vaes <urbain@vaes.uk> | 2018-02-21 12:18:32 +0000 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2018-02-21 16:46:29 +0000 |
commit | b9ea238dd7e8a56b1d171cdc76e405bb2a8584dd (patch) | |
tree | d693deb61965b724cd8630e0a061e5e762341c9c /i3/.config/i3blocks/bin/email | |
parent | 68d822599f074c24505eea2329bfc80e2745feab (diff) |
Improve i3 status
Diffstat (limited to 'i3/.config/i3blocks/bin/email')
-rwxr-xr-x | i3/.config/i3blocks/bin/email | 5 |
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 |