]> oss.titaniummirror.com Git - smckown/dotfiles.git/commitdiff
dwmrc: clean up unnecessary processes
authorR. Steve McKown <rsmckown@gmail.com>
Sat, 12 Dec 2015 22:11:07 +0000 (15:11 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Sat, 12 Dec 2015 22:12:21 +0000 (15:12 -0700)
Change how background processes are started from .dwmrc so that
unnecessary bash processes aren't left as parents of the daemons
launched.

dwmrc

diff --git a/dwmrc b/dwmrc
index 9637492324b57db38c5c3c6a4b02b62096eeea8b..aeebe9a26518290289d8cda0987242b3dcb8f6db 100755 (executable)
--- a/dwmrc
+++ b/dwmrc
@@ -27,18 +27,18 @@ dispcfg
 # Screen saver.  DPMS standby -> suspend -> off in seconds
 # xss-lock calls i3lock on no X activity (DPMS standby)
 xset dpms 300 600 1200
-pgrep -x xss-lock || xss-lock -- i3lock --dpms &
+(pgrep -x xss-lock || exec xss-lock -- i3lock --dpms ) &
 
 # Turn off touchpad (later use a toggle)
 type synclient 2>/dev/null && synclient TouchpadOff=1
 
 # Applets, etc
-pgrep -x xbindkeys || xbindkeys &
-pgrep -x dunst || dunst &
-pgrep -x nm-applet || nm-applet &
-pgrep -x xfce4-power-manager || xfce4-power-manager &
-pgrep -x pidgin || pidgin &
-pgrep dwm-i3status || dwm-i3status &
+(pgrep -x xbindkeys || exec xbindkeys ) &
+(pgrep -x dunst || exec dunst ) &
+(pgrep -x nm-applet || exec nm-applet ) &
+(pgrep -x xfce4-power-manager || exec xfce4-power-manager ) &
+(pgrep -x pidgin || exec pidgin ) &
+(pgrep dwm-i3status || exec dwm-i3status ) &
 
 # DWM has bindings for screen captures that expects ~/screenshots/ to exist.
 mkdir -p ~/screenshots