From f080d89dedfa56ef26f9f74ecf51cf4a74828707 Mon Sep 17 00:00:00 2001 From: Dmitry Zakharchenko <82608185+dm1tz@users.noreply.github.com> Date: Sun, 4 Sep 2022 11:17:46 +0300 Subject: [PATCH] Created autostart (markdown) --- autostart.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 autostart.md 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