diff options
author | Ingo Bürk <admin@airblader.de> | 2018-06-29 23:10:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-29 23:10:53 +0200 |
commit | 302966374bd7d9ca5b97171cedd3613ae10360c8 (patch) | |
tree | 1e8afe30232b17abdbb86c67bddefea99e450a12 /i3status.c | |
parent | 78c0a53c45428a9671c2d0c38dc5483f66465bf2 (diff) | |
parent | 4ea804b751f9394b7b10b520212169a491c698a6 (diff) |
Merge pull request #292 from Stunkymonkey/format_quality
add format_quality option in wireless
Diffstat (limited to 'i3status.c')
-rw-r--r-- | i3status.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -336,6 +336,7 @@ int main(int argc, char *argv[]) { cfg_opt_t wireless_opts[] = { CFG_STR("format_up", "W: (%quality at %essid, %bitrate) %ip", CFGF_NONE), CFG_STR("format_down", "W: down", CFGF_NONE), + CFG_STR("format_quality", "%3d%s", CFGF_NONE), CFG_CUSTOM_ALIGN_OPT, CFG_CUSTOM_COLOR_OPTS, CFG_CUSTOM_MIN_WIDTH_OPT, @@ -693,7 +694,7 @@ int main(int argc, char *argv[]) { interface = first_eth_interface(NET_TYPE_WIRELESS); if (interface == NULL) interface = title; - print_wireless_info(json_gen, buffer, interface, cfg_getstr(sec, "format_up"), cfg_getstr(sec, "format_down")); + print_wireless_info(json_gen, buffer, interface, cfg_getstr(sec, "format_up"), cfg_getstr(sec, "format_down"), cfg_getstr(sec, "format_quality")); SEC_CLOSE_MAP; } |