summaryrefslogtreecommitdiff
path: root/i3status.c
diff options
context:
space:
mode:
authorChristian Dietrich <stettberger@dokucode.de>2010-04-05 15:47:56 +0200
committerMichael Stapelberg <michael@stapelberg.de>2010-04-06 14:54:25 +0200
commit8edce057640ec4e4d1d644317a585495de4f1865 (patch)
treeba41dc310e19bcef422ba5526346bacd5505d313 /i3status.c
parentd60fc3fa43d8f8674a150bfa61bad4ae7407521a (diff)
ipv6: provide format strings for ipv6 up and ipv6 down
Diffstat (limited to 'i3status.c')
-rw-r--r--i3status.c5
1 files changed, 3 insertions, 2 deletions
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"));