From 8edce057640ec4e4d1d644317a585495de4f1865 Mon Sep 17 00:00:00 2001 From: Christian Dietrich Date: Mon, 5 Apr 2010 15:47:56 +0200 Subject: ipv6: provide format strings for ipv6 up and ipv6 down --- i3status.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'i3status.c') diff --git a/i3status.c b/i3status.c index 2486480..903ea92 100644 --- a/i3status.c +++ b/i3status.c @@ -92,7 +92,8 @@ int main(int argc, char *argv[]) { }; cfg_opt_t ipv6_opts[] = { - CFG_STR("format", "%ip", CFGF_NONE), + CFG_STR("format_up", "%ip", CFGF_NONE), + CFG_STR("format_down", "no IPv6", CFGF_NONE), CFG_END() }; @@ -198,7 +199,7 @@ int main(int argc, char *argv[]) { const char *current = cfg_getnstr(cfg, "order", j); CASE_SEC("ipv6") - print_ipv6_info(cfg_getstr(sec, "format")); + print_ipv6_info(cfg_getstr(sec, "format_up"), cfg_getstr(sec, "format_down")); CASE_SEC_TITLE("wireless") print_wireless_info(title, cfg_getstr(sec, "format_up"), cfg_getstr(sec, "format_down")); -- cgit v1.2.3