aboutsummaryrefslogtreecommitdiff
path: root/config/i3blocks
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-04-11 13:23:06 +0200
committerKarel Kočí <cynerd@email.cz>2017-04-11 13:23:06 +0200
commitaddf0820e80286e42864f12ade3cd0215fa51bc4 (patch)
treeeedc6fb8fc35a00c67ad0bf35956f74164e1ddb6 /config/i3blocks
parent968eb80c3fa1d3581186e47ff8d3c7a32aa6b577 (diff)
downloadmyconfigs-addf0820e80286e42864f12ade3cd0215fa51bc4.tar.gz
myconfigs-addf0820e80286e42864f12ade3cd0215fa51bc4.tar.bz2
myconfigs-addf0820e80286e42864f12ade3cd0215fa51bc4.zip
Fix email and other scripts called from i3
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"