diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2009-10-16 20:14:40 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2009-10-16 20:14:40 +0200 |
commit | b88a55ffa6df3d6e48c5814171f6e8e42449b3e9 (patch) | |
tree | cbd5215aedc43a0bea7a92e87b0b3c8fe419f1b0 /i3status.c | |
parent | cb9bab4255a19b201d5bb13220421e687866484d (diff) |
Implement format_up/format_down for ethernet
Diffstat (limited to 'i3status.c')
-rw-r--r-- | i3status.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -59,7 +59,8 @@ int main(int argc, char *argv[]) { }; cfg_opt_t ethernet_opts[] = { - CFG_STR("format", "E: %ip (%speed)", CFGF_NONE), + CFG_STR("format_up", "E: %ip (%speed)", CFGF_NONE), + CFG_STR("format_down", "E: down", CFGF_NONE), CFG_END() }; @@ -153,7 +154,7 @@ int main(int argc, char *argv[]) { print_wireless_info(title, cfg_getstr(sec, "format_up"), cfg_getstr(sec, "format_down")); CASE_SEC_TITLE("ethernet") - print_eth_info(title, cfg_getstr(sec, "format")); + print_eth_info(title, cfg_getstr(sec, "format_up"), cfg_getstr(sec, "format_down")); CASE_SEC_TITLE("battery") print_battery_info(atoi(title), cfg_getstr(sec, "format")); |