From 4ec02bea7bbe534ef4b610bc63d1694bf0823174 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 6 Jan 2011 18:22:46 +0100 Subject: implement the 'path' option for cpu temperature --- i3status.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'i3status.c') diff --git a/i3status.c b/i3status.c index eff6da4..e4a3e4c 100644 --- a/i3status.c +++ b/i3status.c @@ -229,6 +229,7 @@ int main(int argc, char *argv[]) { cfg_opt_t temp_opts[] = { CFG_STR("format", "%degrees C", CFGF_NONE), + CFG_STR("path", NULL, CFGF_NONE), CFG_END() }; @@ -361,7 +362,7 @@ int main(int argc, char *argv[]) { cfg_getint(sec, "mixer_idx")); CASE_SEC_TITLE("cpu_temperature") - print_cpu_temperature_info(atoi(title), cfg_getstr(sec, "format")); + print_cpu_temperature_info(atoi(title), cfg_getstr(sec, "path"), cfg_getstr(sec, "format")); } printf("\n"); fflush(stdout); -- cgit v1.2.3