From 5b7230433e9c173062d571aac34917222500dc62 Mon Sep 17 00:00:00 2001 From: zachir Date: Sun, 12 Feb 2023 01:36:24 -0600 Subject: move system specific stuff to computerrc.sh, check if xmonad exists before finding path --- autostart.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/autostart.sh b/autostart.sh index 162f23a..5984a49 100755 --- a/autostart.sh +++ b/autostart.sh @@ -2,22 +2,22 @@ runifnot () { if type $1 >/dev/null; then echo $1 - if [ -z "$(pgrep -f $1)" ]; then + if [ -z "$(pgrep -Uzachir -f $1)" ]; then $@ & fi fi } -runifnot runsvdir ~/.runit/runsvdir +#runifnot runsvdir ~/.runit/runsvdir runifnot picom -runifnot mpd-mpris -network unix -runifnot mpd-notification runifnot xss-lock slockd runifnot sxhkd runifnot dunst runifnot caffeine -if [ "$(crcparse WM)" = "$(which xmonad)" ]; then - runifnot stalonetray +if "$(type xmonad >/dev/null 2>&1)"; then + if ["$(crcparse WM)" = "$(which xmonad)" ]; then + runifnot stalonetray + fi fi xwallpaper --zoom ~/background.jpg setxkbmap -option "caps:escape" -- cgit v1.2.3