Skip to content
Leonardo Hernández Hernández edited this page Jun 22, 2022 · 1 revision

autostart

Description

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.

Example

static const char *const autostart[] = {
	"foot", "--server", NULL,
	"fnott", NULL,
	NULL
};

Attention

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).

Download

Author

Clone this wiki locally