Browse Source

Update docs (agent command section)

master
Pekka Helenius 4 years ago
parent
commit
3c92b07e98
1 changed files with 8 additions and 4 deletions
  1. +8
    -4
      doc/CONFIGURATION.md

+ 8
- 4
doc/CONFIGURATION.md View File

@ -124,10 +124,10 @@ The syntax is the following:
### Agent ### 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: ### Example:
@ -141,6 +141,8 @@ The syntax is the following:
<env>DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus</env> <env>DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus</env>
<env>HOME=/home/scox</env> <env>HOME=/home/scox</env>
<cmd>gnome-screensaver-command --lock</cmd> <cmd>gnome-screensaver-command --lock</cmd>
<cmd>sleep 5</cmd>
<cmd>pkill -SIGSTOP -u 1000</cmd>
</agent> </agent>
<agent event="lock"> <agent event="lock">
<cmd>beep-media-player --pause</cmd> <cmd>beep-media-player --pause</cmd>
@ -150,6 +152,8 @@ The syntax is the following:
<agent event="unlock"> <agent event="unlock">
<env>DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus</env> <env>DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus</env>
<env>HOME=/home/scox</env> <env>HOME=/home/scox</env>
<cmd>pkill -SIGCONT -u 1000</cmd>
<cmd>sleep 5</cmd>
<cmd>gnome-screensaver-command --deactivate</cmd> <cmd>gnome-screensaver-command --deactivate</cmd>
</agent> </agent>
<agent event="unlock"> <agent event="unlock">


Loading…
Cancel
Save