mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-01-18 18:02:28 +00:00
Created autostart (markdown)
parent
d605c908f8
commit
f080d89ded
21
autostart.md
Normal file
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)
|
||||||
Loading…
x
Reference in New Issue
Block a user