]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
herbstluftwm/autostart: fix timeout of notify()
authorSimon Ruderich <simon@ruderich.org>
Sat, 14 Jun 2014 19:14:59 +0000 (21:14 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 14 Jun 2014 19:14:59 +0000 (21:14 +0200)
If dzen2 was installed it hung the window manager because it waited for
the timeout in the foreground!

herbstluftwm/autostart

index 1fbb591559330c29233aa95b5946cf7fbb6f9f48..0cbecf49220e396302e4c3ba279129d17117a672 100755 (executable)
@@ -30,7 +30,7 @@ installed() {
 # $1: timeout
 notify() {
     if installed dzen2; then
-        sed 's/\^/^^/g' | dzen2 -fg blue -bg yellow -y 15 -h 30 -p "$1"
+        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