start startup script if it exists

This commit is contained in:
Luke Smith 2020-04-09 16:53:54 -04:00
parent a28d4c3bb4
commit 6cb092d8f2
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

3
dwm.c
View file

@ -1522,7 +1522,8 @@ run(void)
void
runAutostart(void) {
system("export STATUSBAR=\"dwmblocks\" ; killall dwmblocks ; dwmblocks &");
system("type startup >/dev/null 2>&1 && startup &");
system("killall dwmblocks ; dwmblocks &");
}
void