From b9948793a5f02a649f1baf700baefab40e044567 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 7 Oct 2008 15:25:41 +0200 Subject: Add manpage, ignore spaces in tokens, introduce interval --- config.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'config.c') diff --git a/config.c b/config.c index bc1ec4f..aa7973e 100644 --- a/config.c +++ b/config.c @@ -19,10 +19,11 @@ const char *wmii_path; const char *time_format; const char *battery_path; bool use_colors; -const char *wmii_normcolors; +const char *wmii_normcolors = "#222222 #333333"; char order[MAX_ORDER][2]; const char **run_watches; unsigned int num_run_watches; +int interval = 1; void die(const char *fmt, ...); @@ -152,6 +153,8 @@ int load_configuration(const char *configfile) { SET_ORDER("load", ORDER_LOAD); SET_ORDER("time", ORDER_TIME); token = walk; + while (isspace((int)(*token))) + token++; } } OPT("color") @@ -162,6 +165,10 @@ int load_configuration(const char *configfile) { { wmii_normcolors = strdup(dest_value); } + OPT("interval") + { + interval = atoi(dest_value); + } else { result = -2; -- cgit v1.2.3