summaryrefslogtreecommitdiff
path: root/i3status.h
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2009-10-24 13:27:02 +0200
committerMichael Stapelberg <michael@stapelberg.de>2009-10-24 13:27:02 +0200
commit013fdece8dbf31acf531b4745e335bb0edb56a2e (patch)
tree744fe406d455845a37fac9760af80e56f305436b /i3status.h
parent6cf90596649ecaea53d982ef2c02bf030117d33e (diff)
Change output format to be a config option instead of a compile time define
Diffstat (limited to 'i3status.h')
-rw-r--r--i3status.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/i3status.h b/i3status.h
index 0a42555..4c7d4b4 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 <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))