Mercurial > lbo > hg > myi3stat
changeset 18:b50a0aeb059a
README: Add i3 integration howto
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sun, 14 Feb 2016 15:23:51 +0100 |
parents | 3dc0189c4314 |
children | 9d7e78d13bd4 |
files | README.md |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/README.md Sun Feb 14 15:20:11 2016 +0100 +++ b/README.md Sun Feb 14 15:23:51 2016 +0100 @@ -89,3 +89,19 @@ myi3stat --your_metric "%f %f %d" +### Use it + +Edit your i3 configuration, e.g. at `.config/i3/config` or `.i3/config`; add +(or change) the following configuration snippet at the end of the file: + + bar { + status_command /path/to/myi3stat --interval 5 --your_metric "%f %f" + tray_output primary + } + +VoilĂ ! + +If you have several metrics, the default output is in alphabetical order; you can use the +`--ordering` flag to change this behavior: + + myi3stat --ordering your_metric,clock --your_metric "%f %f" --clock