diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2022-04-23 01:25:46 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2022-04-23 01:25:46 +0200 |
commit | 575db6052aa15cf135d1bea9efd04d4edef1b062 (patch) | |
tree | 2005b91d281d02b0aa757116cdd123b9093820f6 /.config/x11 | |
parent | ncmpc keys update and more (diff) | |
download | dotfiles-bsd-575db6052aa15cf135d1bea9efd04d4edef1b062.tar.gz dotfiles-bsd-575db6052aa15cf135d1bea9efd04d4edef1b062.tar.bz2 dotfiles-bsd-575db6052aa15cf135d1bea9efd04d4edef1b062.tar.xz dotfiles-bsd-575db6052aa15cf135d1bea9efd04d4edef1b062.tar.zst dotfiles-bsd-575db6052aa15cf135d1bea9efd04d4edef1b062.zip |
udpate
Diffstat (limited to '.config/x11')
-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 |