From 32ea05f3fee7ba980135d0888ce00df5861dd1e6 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 14 Jun 2014 21:20:54 +0200 Subject: [PATCH] herbstluftwm/autostart: fix notify() with dzen2 Without the read x, the message is not displayed when & is used. --- herbstluftwm/autostart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.45.2