diff --git a/autostart.md b/autostart.md new file mode 100644 index 0000000..a6f994b --- /dev/null +++ b/autostart.md @@ -0,0 +1,21 @@ +### 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. + +**Note:** 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). + +### Example +```c +static const char *const autostart[] = { + "foot", "--server", NULL, + "fnott", NULL, + NULL +}; +``` + +### Download +- [2022-02-09](https://github.com/djpohly/dwl/compare/main...Sevz17:autostart.patch) +- [wlroots-next](https://github.com/djpohly/dwl/compare/wlroots-next...Sevz17:autostart-wlroots-next.patch) +- [v0.3.1](https://pastebin.com/raw/09Lmaew7) + +### Authors +- [sevz](https://github.com/Sevz17) \ No newline at end of file