summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2009-08-18 21:29:44 +0200
committerMichael Stapelberg <michael@stapelberg.de>2009-08-18 21:29:44 +0200
commitbb52b40c8ed5b3c938f6bb157b08bcb18bb067c2 (patch)
treeb51353978312adc5624872a2f0fbb3e2f0da79d3 /src/config.c
parent56312001de9362ced18962149bd8143185214561 (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/config.c')
-rw-r--r--src/config.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c
index 2d9d6b6..19c03e9 100644
--- a/src/config.c
+++ b/src/config.c
@@ -4,6 +4,7 @@
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
+#include <glob.h>
#include "i3status.h"
@@ -80,7 +81,7 @@ int load_configuration(const char *configfile) {
interval = atoi(dest_value);
OPT("wmii_path")
{
-#ifndef DZEN
+#if !defined(DZEN) && !defined(XMOBAR)
static glob_t globbuf;
struct stat stbuf;
if (glob(dest_value, GLOB_NOCHECK | GLOB_TILDE, NULL, &globbuf) < 0)
@@ -139,7 +140,7 @@ int load_configuration(const char *configfile) {
}
fclose(handle);
-#ifndef DZEN
+#if !defined(DZEN) && !defined(XMOBAR)
if (wmii_path == NULL)
exit(EXIT_FAILURE);
#endif