diff options
Diffstat (limited to '')
-rw-r--r-- | .config/x11/xinitrc | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc index 3661337..5d1eaf3 100644 --- a/.config/x11/xinitrc +++ b/.config/x11/xinitrc @@ -1,17 +1,21 @@ # vim: filetype=sh -pkill compton -pkill dunst -pkill mpd-notification -pkill lowbat + +startif() { + if ! pgrep "$1"; then + bsdsetsid "$@" >/dev/null 2>&1 + fi +} /home/jozan/.local/bin/scrmain /home/jozan/.local/bin/kb -/usr/local/bin/musicpd >/dev/null 2>&1 -/usr/local/bin/compton >/dev/null 2>&1 & -/usr/local/bin/dunst >/dev/null 2>&1 & -/usr/local/bin/mpd-notification >/dev/null 2>&1 & -/usr/local/bin/lowbat >/dev/null 2>&1 & +startif dunst +startif compton +startif musicpd +startif mpd-notification +startif lowbat +startif emacs --daemon +notify-send -u low -t 2000 'emacs' ' Emacs daemonized' cd /home/jozan xrdb /home/jozan/.config/x11/xresources -/usr/local/bin/notify-send -u normal 'Welcome' " Welcome back, partner\!" -dbus-launch dwm +notify-send -u normal 'Welcome' " Welcome back, partner\!" +exec dwm |