diff options
author | Karel Kočí <cynerd@email.cz> | 2017-04-11 13:23:06 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-04-11 13:23:06 +0200 |
commit | addf0820e80286e42864f12ade3cd0215fa51bc4 (patch) | |
tree | eedc6fb8fc35a00c67ad0bf35956f74164e1ddb6 /config/i3blocks | |
parent | 968eb80c3fa1d3581186e47ff8d3c7a32aa6b577 (diff) | |
download | myconfigs-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-x | config/i3blocks/scripts/email | 5 |
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" |