]> git.sur5r.net Git - i3/i3status/blobdiff - i3status.h
ipv6: provide format strings for ipv6 up and ipv6 down
[i3/i3status] / i3status.h
index 3fa964434b52b9420e780f82da13c52148c85ab5..49bd38710c752440eb05222bf5513ce7aa1f32ae 100644 (file)
@@ -1,14 +1,11 @@
 #ifndef _I3STATUS_H
 #define _I3STATUS_H
 
+enum { O_DZEN2, O_XMOBAR, O_NONE } output_format;
+
 #include <stdbool.h>
 #include <confuse.h>
 
-#ifdef DZEN
-       #define BAR "^fg(#333333)^p(5;-2)^ro(2)^p()^fg()^p(5)"
-#elif XMOBAR
-       #define BAR "<fc=#333333> | </fc>"
-#endif
 #define BEGINS_WITH(haystack, needle) (strncmp(haystack, needle, strlen(needle)) == 0)
 #define max(a, b) ((a) > (b) ? (a) : (b))
 
@@ -61,9 +58,9 @@ void print_seperator();
 char *color(const char *colorstr);
 char *endcolor() __attribute__ ((pure));
 
-void print_ipv6_info(const char *format);
+void print_ipv6_info(const char *format_up, const char *format_down);
 void print_disk_info(const char *path, const char *format);
-void print_battery_info(int number, const char *format);
+void print_battery_info(int number, const char *format, bool last_full_capacity);
 void print_time(const char *format);
 const char *get_ip_addr();
 void print_wireless_info(const char *interface, const char *format_up, const char *format_down);