From caefe535c798c5e17480200f0d29a09233a28316 Mon Sep 17 00:00:00 2001 From: Marc Payne Date: Fri, 28 Aug 2015 18:38:46 -0600 Subject: [PATCH] Update documentation for if_running --- doc/variables.xml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/doc/variables.xml b/doc/variables.xml index f97ab572..9753c507 100644 --- a/doc/variables.xml +++ b/doc/variables.xml @@ -1849,9 +1849,21 @@ - if PROCESS is running, display everything - $if_running and the matching $endif. This uses the - ``pidof'' command, so the -x switch is also supported. + If PROCESS is running, display everything + between $if_running and the corresponding $else or $endif. + Note that PROCESS may be either a full command line with + arguments (without the directory prefix), or simply the name + of an executable. For example, either of the following will + be true if there is a running process with the command line + /usr/bin/conky -u 5: + + + ${if_running conky -u 5} or + ${if_running conky} + + + It is important not to include trailing spaces. For example, + ${if_running conky } will be false.