ipv6 status color
Hi,
I was missing colors in ipv6 module (or how should I call it?) of i3status. I've cloned the master branch, moved END_COLOR above the OUTPUT_FULL_TEXT in print_ipv6_addr.c and here they are. Is this the correct approach?
And thank you for the great WM!
Luka
diff --git a/src/print_ipv6_addr.c b/src/print_ipv6_addr.c
index 8b11e1f..840a0ec 100644
--- a/src/print_ipv6_addr.c
+++ b/src/print_ipv6_addr.c
@@ -123,8 +123,8 @@ void print_ipv6_info(yajl_gen json_gen, char *buffer, const char *format_up, con
if (addr_string == NULL) {
START_COLOR("color_bad");
- OUTPUT_FULL_TEXT(format_down);
END_COLOR;
+ OUTPUT_FULL_TEXT(format_down);
return;
}
@@ -140,6 +140,6 @@ void print_ipv6_info(yajl_gen json_gen, char *buffer, const char *format_up, con
}
}
START_COLOR("color_good");
- OUTPUT_FULL_TEXT(buffer);
END_COLOR;
+ OUTPUT_FULL_TEXT(buffer);
}
I have colors in the IPv6 module. Are you using i3bar, dzen2 or xmobar to display i3status’s output?
Hi Michael, sorry about that, I'm using i3bar.
I've build i3status without my change and the colors are there. i3status I was using is an older one (2.5.1 from rpm) and I have found the commit that enabled colors. Thank you.