]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - herbstluftwm/autostart
herbstluftwm/autostart: fix notify() with dzen2
[config/dotfiles.git] / herbstluftwm / autostart
index 1fbb591559330c29233aa95b5946cf7fbb6f9f48..f8b7c3a560d73841e34c6b2ec626d279624ea86b 100755 (executable)
@@ -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