forked from djpohly/dwl
-
Notifications
You must be signed in to change notification settings - Fork 1
Patch: autostart
Leonardo Hernández Hernández edited this page Jun 22, 2022
·
1 revision
Allow dwl to execute commands from autostart array in your config.h file. And when you exit dwl all processes from autostart array will be killed.
static const char *const autostart[] = {
"foot", "--server", NULL,
"fnott", NULL,
NULL
};
Commands from array are executed using execvp(). So if you need to execute shell command you need to prefix it with "sh", "-c" (change sh to any shell you like).
- sevz [email protected]