summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-01-18 11:05:01 +0000
committerUrbain Vaes <urbain@vaes.uk>2016-01-18 11:05:01 +0000
commit7ed44a7a79028079513a31793240ee63ad49830d (patch)
treee5d75df622d62ab67ddf7fa13cf8d3b999361a73 /bin
parentb7715a0b58024479bf66f1df8cd04ff54cb1229a (diff)
Add email in i3status
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mystatus9
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