From 7ed44a7a79028079513a31793240ee63ad49830d Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Mon, 18 Jan 2016 11:05:01 +0000 Subject: Add email in i3status --- bin/mystatus | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bin/mystatus (limited to 'bin/mystatus') diff --git a/bin/mystatus b/bin/mystatus new file mode 100755 index 0000000..b26e9b6 --- /dev/null +++ b/bin/mystatus @@ -0,0 +1,9 @@ +#!/bin/sh +# shell script to prepend i3status with more stuff + +i3status | while : +do + read line + nmails=$(find $HOME/.mail -path '*/new/*' -type f | wc -l) + echo "Email: ${nmails} | $line" || exit 1 +done -- cgit v1.2.3