diff options
author | Michael Stapelberg <michael+x200@stapelberg.de> | 2008-10-07 15:25:41 +0200 |
---|---|---|
committer | Michael Stapelberg <michael+x200@stapelberg.de> | 2008-10-07 15:25:41 +0200 |
commit | b9948793a5f02a649f1baf700baefab40e044567 (patch) | |
tree | 04240d53f3e6b9d7d39ef8c146bdf4067dcef7ca /config.c | |
parent | a49ff50578c3527634ff7cad11c8a2878403fde8 (diff) |
Add manpage, ignore spaces in tokens, introduce interval
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; |