From 4067ac40b0a93f85df3ddcf113c454aa3595f568 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 23 Apr 2022 03:11:22 +0200 Subject: should be good --- .config/x11/xinitrc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc index 5b68e7f..acbd1c1 100644 --- a/.config/x11/xinitrc +++ b/.config/x11/xinitrc @@ -1,21 +1,19 @@ # vim: filetype=sh startif() { - if ! pgrep "$1" >/dev/null; then - bsdsetsid "$@" >/dev/null 2>&1 - fi + pgrep "$1" >/dev/null || "$@" >/dev/null 2>&1 & } -/home/jozan/.local/bin/scrmain -/home/jozan/.local/bin/kb +"$HOME"/.local/bin/scrmain +"$HOME"/.local/bin/kb startif dunst startif compton -startif musicpd +pgrep musicpd >/dev/null || musicpd >/dev/null 2>&1 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 +cd "$HOME" +xrdb "$HOME"/.config/x11/xresources notify-send -u normal 'Welcome' " Welcome back, partner\!" exec dwm -- cgit v1.2.3