aboutsummaryrefslogtreecommitdiff
path: root/config/i3blocks
diff options
context:
space:
mode:
Diffstat (limited to 'config/i3blocks')
-rwxr-xr-xconfig/i3blocks/scripts/email5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/i3blocks/scripts/email b/config/i3blocks/scripts/email
index db2dd29..2d26280 100755
--- a/config/i3blocks/scripts/email
+++ b/config/i3blocks/scripts/email
@@ -1,5 +1,6 @@
-#!/bin/bash
-OUT="$(email-unread -s | tr "\n" " ")"
+#!/bin/sh
+# Note: we cut last character because output ends with new line
+OUT="$(email-unread -s | tr "\n" " " | sed 's/ $//')"
echo "$OUT"
echo "$OUT"
echo "#ffff00"