]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - herbstluftwm/autostart
herbstluftwm/autostart: fix timeout of notify()
[config/dotfiles.git] / herbstluftwm / autostart
index cf2247d5094897eeb2eadeb513a1a4b6b94b2a5d..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
@@ -72,7 +72,7 @@ for locker in xscreensaver xtrlock ''; do
     fi
 done
 if test -z "$locker"; then
-    echo 'No screen locker found!' | notify 60 &
+    echo 'No screen locker found!' | notify 60
 fi
 # Additional options.
 locker_pre=