mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-08-11 22:44:50 +00:00
Created autostart (markdown)
+21
@@ -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)
|
||||||
Reference in New Issue
Block a user