summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorMats <d912e3@gmail.com>2014-03-08 00:24:42 +0100
committerMichael Stapelberg <michael@stapelberg.de>2014-03-09 22:57:19 +0100
commitbc0bd8c9e03d92ab133f4dfae52dc202c3e0cbf6 (patch)
tree61eebe406b1a1978d1fb3d1e84706ab2daaba48e /man
parent1de12e7b20e7ce38e2777218f1d922b3255599e1 (diff)
disk: Colorize output when below given threshold
New disk module options: * threshold_type: ^(percentage|[kmgt]?bytes)_(free|avail)$ * low_threshold: <double> fixes #912
Diffstat (limited to 'man')
-rw-r--r--man/i3status.man14
1 files changed, 14 insertions, 0 deletions
diff --git a/man/i3status.man b/man/i3status.man
index 656a8bf..1182e54 100644
--- a/man/i3status.man
+++ b/man/i3status.man
@@ -223,6 +223,16 @@ SI prefixes (k, M, G, T) represent multiples of powers of 1000.
custom::
The custom prefixes (K, M, G, T) represent multiples of powers of 1024.
+It is possible to define a low_threshold that causes the disk text to be
+displayed using color_bad. The low_threshold type can be of threshold_type
+"bytes_free", "bytes_avail", "percentage_free", or "percentage_avail", where
+the former two can be prepended by a generic prefix (k, m, g, t) having
+prefix_type. So, if you configure low_threshold to 2, threshold_type to
+"gbytes_avail", and prefix_type to "binary", and the remaining available disk
+space is below 2 GiB, it will be colored bad. If not specified, threshold_type
+is assumed to be "percentage_avail" and low_threshold to be set to 0, which
+implies no coloring at all.
+
*Example order*: +disk /mnt/usbstick+
*Example format*: +%free (%avail)/ %total+
@@ -231,6 +241,10 @@ The custom prefixes (K, M, G, T) represent multiples of powers of 1024.
*Example prefix_type*: +custom+
+*Example low_threshold*: +5+
+
+*Example threshold_type*: +percentage_free+
+
=== Run-watch
Expands the given path to a pidfile and checks if the process ID found inside