diff options
author | Christian Dietrich <stettberger@dokucode.de> | 2010-04-05 15:47:56 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2010-04-06 14:54:25 +0200 |
commit | 8edce057640ec4e4d1d644317a585495de4f1865 (patch) | |
tree | ba41dc310e19bcef422ba5526346bacd5505d313 /i3status.c | |
parent | d60fc3fa43d8f8674a150bfa61bad4ae7407521a (diff) |
ipv6: provide format strings for ipv6 up and ipv6 down
Diffstat (limited to 'i3status.c')
-rw-r--r-- | i3status.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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")); |