diff options
Diffstat (limited to 'autostart.sh')
-rwxr-xr-x | autostart.sh | 12 |
1 files 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" |