Created autostart (markdown)

Dmitry Zakharchenko 2022-09-04 11:17:46 +03:00
parent d605c908f8
commit f080d89ded

21
autostart.md Normal file

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