From 3c92b07e98c016854f5e0e501802340c0f25e806 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Fri, 22 May 2020 08:18:32 +0300 Subject: [PATCH] Update docs (agent command section) --- doc/CONFIGURATION.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/CONFIGURATION.md b/doc/CONFIGURATION.md index 65400ac..4f754f0 100644 --- a/doc/CONFIGURATION.md +++ b/doc/CONFIGURATION.md @@ -124,10 +124,10 @@ The syntax is the following: ### Agent -| Name | Type | Description | -|-------|-----------|-----------------------------------------------------------------------------------------------------| -| `env` | Attribute | An environment variable for the command. For multiple environment variables use multiple `env` tags | -| `cmd` | Attribute | Agent command, associated with `env` tags in the same agent element | +| Name | Type | Description | +|-------|-----------|-----------------------------------------------------------------------------------------------------------------| +| `env` | Attribute | Environment variable for the command. For multiple environment variables use multiple `env` tags. | +| `cmd` | Attribute | Agent command, associated with `env` tags in the same agent element. Multiple/chained `cmd` elements supported. | ### Example: @@ -141,6 +141,8 @@ The syntax is the following: DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus HOME=/home/scox gnome-screensaver-command --lock + sleep 5 + pkill -SIGSTOP -u 1000 beep-media-player --pause @@ -150,6 +152,8 @@ The syntax is the following: DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus HOME=/home/scox + pkill -SIGCONT -u 1000 + sleep 5 gnome-screensaver-command --deactivate