about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-08-24 10:23:00 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-08-24 10:23:00 +0200
commitbbc86964279a08dd08bf76fc4a3fc28be701a723 (patch)
tree4bacbf58b2442a9eff646f4c14b7081f307d94ae
parentRemoved padding in status script (diff)
downloaddwm-bbc86964279a08dd08bf76fc4a3fc28be701a723.tar.gz
dwm-bbc86964279a08dd08bf76fc4a3fc28be701a723.tar.bz2
dwm-bbc86964279a08dd08bf76fc4a3fc28be701a723.zip
Added todo to status script
-rwxr-xr-xscripts/dwm-status18
1 files changed, 14 insertions, 4 deletions
diff --git a/scripts/dwm-status b/scripts/dwm-status
index 8b05432..32cf87a 100755
--- a/scripts/dwm-status
+++ b/scripts/dwm-status
@@ -87,6 +87,17 @@ updates() {
   fi
 }
 
+todo() {
+	command -v t >/dev/null 2>&1 &&
+        echo "$(t | wc -l)" &&
+        echo "$delim"
+}
+
+mail() {
+	command -v neomutt >/dev/null 2>&1 &&
+        du -a ~/Mail/INBOX/new/* 2>/dev/null | wc -l | sed 's/^/: /' &&
+        echo "$delim"
+}
 
 tor() {
 
@@ -219,10 +230,9 @@ status() { \
 
 	updates
 
-	# Show unread mail
-	command -v neomutt >/dev/null 2>&1 &&
-		du -a ~/Mail/INBOX/new/* 2>/dev/null | wc -l | sed 's/^/: /' &&
-		echo "$delim"
+	todo
+
+	mail
 
 	volume