summaryrefslogtreecommitdiffstats
path: root/.config/x11
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-04-23 03:11:22 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2022-04-23 03:11:22 +0200
commit4067ac40b0a93f85df3ddcf113c454aa3595f568 (patch)
tree905e16941a8d409b8b5b3fde20b52fe7785aa8dc /.config/x11
parentupdate (diff)
downloaddotfiles-bsd-4067ac40b0a93f85df3ddcf113c454aa3595f568.tar.gz
dotfiles-bsd-4067ac40b0a93f85df3ddcf113c454aa3595f568.tar.bz2
dotfiles-bsd-4067ac40b0a93f85df3ddcf113c454aa3595f568.tar.xz
dotfiles-bsd-4067ac40b0a93f85df3ddcf113c454aa3595f568.tar.zst
dotfiles-bsd-4067ac40b0a93f85df3ddcf113c454aa3595f568.zip
should be good
Diffstat (limited to '.config/x11')
-rw-r--r--.config/x11/xinitrc14
1 files 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