X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3status.h;h=49bd38710c752440eb05222bf5513ce7aa1f32ae;hb=706498644cbc7a6953aee3dd2eb4777c66c471b7;hp=0a425558bab24375da20fb048072737cdf757dd0;hpb=e0c241cc10ec684158d169fece45b7116dc8c003;p=i3%2Fi3status diff --git a/i3status.h b/i3status.h index 0a42555..49bd387 100644 --- a/i3status.h +++ b/i3status.h @@ -1,18 +1,11 @@ #ifndef _I3STATUS_H #define _I3STATUS_H -#if !defined(DZEN) && !defined(XMOBAR) - #error "You have to enable either -DDZEN or -DXMOBAR" -#endif +enum { O_DZEN2, O_XMOBAR, O_NONE } output_format; #include #include -#ifdef DZEN - #define BAR "^fg(#333333)^p(5;-2)^ro(2)^p()^fg()^p(5)" -#elif XMOBAR - #define BAR " | " -#endif #define BEGINS_WITH(haystack, needle) (strncmp(haystack, needle, strlen(needle)) == 0) #define max(a, b) ((a) > (b) ? (a) : (b)) @@ -65,7 +58,7 @@ 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, bool last_full_capacity); void print_time(const char *format);