From: Simon Ruderich Date: Sat, 14 Jun 2014 19:20:54 +0000 (+0200) Subject: herbstluftwm/autostart: fix notify() with dzen2 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=32ea05f3fee7ba980135d0888ce00df5861dd1e6;p=config%2Fdotfiles.git herbstluftwm/autostart: fix notify() with dzen2 Without the read x, the message is not displayed when & is used. --- diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart index 0cbecf4..f8b7c3a 100755 --- a/herbstluftwm/autostart +++ b/herbstluftwm/autostart @@ -30,7 +30,9 @@ installed() { # $1: timeout notify() { if installed dzen2; then - sed 's/\^/^^/g' | dzen2 -fg blue -bg yellow -y 15 -h 30 -p "$1" & + read x + printf '%s\n' "$x" | sed 's/\^/^^/g' \ + | dzen2 -fg blue -bg yellow -y 15 -h 30 -p "$1" & elif installed xmessage; then # Fallback solution, display first line of stdin. read x