summaryrefslogtreecommitdiff
path: root/include/i3status.h
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 /include/i3status.h
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 'include/i3status.h')
-rw-r--r--include/i3status.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/i3status.h b/include/i3status.h
index 8c64586..829fc4e 100644
--- a/include/i3status.h
+++ b/include/i3status.h
@@ -174,7 +174,7 @@ char *auto_detect_format();
void set_timezone(const char *tz);
void print_ipv6_info(yajl_gen json_gen, char *buffer, const char *format_up, const char *format_down);
-void print_disk_info(yajl_gen json_gen, char *buffer, const char *path, const char *format, const char *prefix_type);
+void print_disk_info(yajl_gen json_gen, char *buffer, const char *path, const char *format, const char *prefix_type, const char *threshold_type, const double low_threshold);
void print_battery_info(yajl_gen json_gen, char *buffer, int number, const char *path, const char *format, const char *format_down, int low_threshold, char *threshold_type, bool last_full_capacity, bool integer_battery_capacity, bool hide_seconds);
void print_time(yajl_gen json_gen, char *buffer, const char *format, const char *tz, time_t t);
void print_ddate(yajl_gen json_gen, char *buffer, const char *format, time_t t);