summaryrefslogtreecommitdiff
path: root/i3status.c
diff options
context:
space:
mode:
authorChristian Kohlstedde <christian@kohlsted.de>2015-02-18 23:43:25 +0100
committerChristian Kohlstedde <christian@kohlsted.de>2015-02-18 23:43:25 +0100
commit85bb373095d296a90a7a1e8741229dc4dcb9acc8 (patch)
tree41cde895aaab8e66533e4394abe2edfae45e18d1 /i3status.c
parentf7b25a15dd913dc7a40e3db957d216792c2fb694 (diff)
Adding optional configuration option to "print_disk_info".
Diffstat (limited to 'i3status.c')
-rw-r--r--i3status.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/i3status.c b/i3status.c
index 7c98d06..6491e1c 100644
--- a/i3status.c
+++ b/i3status.c
@@ -386,6 +386,7 @@ int main(int argc, char *argv[]) {
cfg_opt_t disk_opts[] = {
CFG_STR("format", "%free", CFGF_NONE),
+ CFG_STR("format_not_mounted", NULL, CFGF_NONE),
CFG_STR("prefix_type", "binary", CFGF_NONE),
CFG_STR("threshold_type", "percentage_avail", CFGF_NONE),
CFG_FLOAT("low_threshold", 0, CFGF_NONE),
@@ -621,7 +622,7 @@ int main(int argc, char *argv[]) {
CASE_SEC_TITLE("disk") {
SEC_OPEN_MAP("disk_info");
- print_disk_info(json_gen, buffer, title, cfg_getstr(sec, "format"), cfg_getstr(sec, "prefix_type"), cfg_getstr(sec, "threshold_type"), cfg_getfloat(sec, "low_threshold"));
+ print_disk_info(json_gen, buffer, title, cfg_getstr(sec, "format"), cfg_getstr(sec, "format_not_mounted"), cfg_getstr(sec, "prefix_type"), cfg_getstr(sec, "threshold_type"), cfg_getfloat(sec, "low_threshold"));
SEC_CLOSE_MAP;
}