From c74365888889dacc403ec50a92180144a771bac4 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sun, 15 Oct 2017 17:29:31 +0200 Subject: Add i3blocks config --- i3/.config/i3blocks/bin/email | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 i3/.config/i3blocks/bin/email (limited to 'i3/.config/i3blocks/bin/email') diff --git a/i3/.config/i3blocks/bin/email b/i3/.config/i3blocks/bin/email new file mode 100755 index 0000000..ab875e0 --- /dev/null +++ b/i3/.config/i3blocks/bin/email @@ -0,0 +1,10 @@ +#!/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 +else + echo \#00FF00 +fi -- cgit v1.2.3