diff options
author | Urbain Vaes <urbain@vaes.uk> | 2016-01-18 11:05:01 +0000 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2016-01-18 11:05:01 +0000 |
commit | 7ed44a7a79028079513a31793240ee63ad49830d (patch) | |
tree | e5d75df622d62ab67ddf7fa13cf8d3b999361a73 /bin/mystatus | |
parent | b7715a0b58024479bf66f1df8cd04ff54cb1229a (diff) |
Add email in i3status
Diffstat (limited to 'bin/mystatus')
-rwxr-xr-x | bin/mystatus | 9 |
1 files changed, 9 insertions, 0 deletions
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 |