diff options
author | Mart Lubbers | 2016-01-17 18:05:11 +0100 |
---|---|---|
committer | Camil Staps | 2019-12-11 17:29:33 +0100 |
commit | 625518acd7c62acde2d6d150272fa17a45eb3ce9 (patch) | |
tree | 7142278a1694f3e2fda2276e1277525ee31a7632 /man | |
parent | Merge pull request #373 from zsugabubus/fix-memory (diff) |
Add the cmd option in the config that runs a shell command.
Diffstat (limited to 'man')
-rw-r--r-- | man/i3status.man | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/man/i3status.man b/man/i3status.man index a36c853..da54d37 100644 --- a/man/i3status.man +++ b/man/i3status.man @@ -652,6 +652,22 @@ If the file is not found "no file" will be printed, if the file can't be read *Example Max_characters*: 255 +=== Custom command + +Outputs the first line of the stdout of the given shell command passed to *sh +-c*. Note that the last newline is automatically removed. + +*Example order*: +cmd quodlibet+ + +*Example cmd*: +pkill -0 quodlibet && quodlibet --print-playing+ + +*Example configuration*: +------------------------------------------------------------- +cmd quodlibet { + cmd = "pkill -0 quodlibet && quodlibet --print-playing" +} +------------------------------------------------------------- + == Universal module options When using the i3bar output format, there are a few additional options that |