summaryrefslogtreecommitdiff
path: root/autostart.sh
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-02-12 01:36:24 -0600
committerzachir <zachir@librem.one>2023-02-12 01:37:07 -0600
commit5b7230433e9c173062d571aac34917222500dc62 (patch)
tree897c1e83d6721cee0df9558a120eb62f8a1fd42d /autostart.sh
parent0578f0734011c70fd8a2b7ad7a6524895e3fd449 (diff)
move system specific stuff to computerrc.sh, check if xmonad exists before finding path
Diffstat (limited to 'autostart.sh')
-rwxr-xr-xautostart.sh12
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"