diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2009-08-18 21:29:44 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2009-08-18 21:29:44 +0200 |
commit | bb52b40c8ed5b3c938f6bb157b08bcb18bb067c2 (patch) | |
tree | b51353978312adc5624872a2f0fbb3e2f0da79d3 /src/get_wireless_info.c | |
parent | 56312001de9362ced18962149bd8143185214561 (diff) |
Add support for xmobar
Use i3status-xmobar | xmobar -o -t "%StdinReader%" -c "[Run StdinReader]"
You might need to copy the default configuration to ~/.xmobarrc
Diffstat (limited to 'src/get_wireless_info.c')
-rw-r--r-- | src/get_wireless_info.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/get_wireless_info.c b/src/get_wireless_info.c index c257f56..529ba71 100644 --- a/src/get_wireless_info.c +++ b/src/get_wireless_info.c @@ -34,10 +34,10 @@ const char *get_wireless_info() { continue; if ((quality == UCHAR_MAX) || (quality == 0)) { if (use_colors) - (void)snprintf(part, sizeof(part), "%sW: down", color("#FF0000")); + (void)snprintf(part, sizeof(part), "%sW: down%s", color("#FF0000"), endcolor()); else (void)snprintf(part, sizeof(part), "W: down"); - } else (void)snprintf(part, sizeof(part), "%sW: (%03d%%) %s", - color("#00FF00"), quality, get_ip_addr(wlan_interface)); + } else (void)snprintf(part, sizeof(part), "%sW: (%03d%%) %s%s", + color("#00FF00"), quality, get_ip_addr(wlan_interface), endcolor()); return part; } |