X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=config.c;h=1b6fbec1b9aa69c6c450e4d7533c34c31aa8a12a;hb=62f3fc6838bf0e59bb490b0da229649bf86d847c;hp=aa7973e0009296e0109d2734d9bd6925a1d44162;hpb=b9948793a5f02a649f1baf700baefab40e044567;p=i3%2Fi3status diff --git a/config.c b/config.c index aa7973e..1b6fbec 100644 --- a/config.c +++ b/config.c @@ -19,11 +19,12 @@ const char *wmii_path; const char *time_format; const char *battery_path; bool use_colors; +bool get_ethspeed; const char *wmii_normcolors = "#222222 #333333"; char order[MAX_ORDER][2]; const char **run_watches; unsigned int num_run_watches; -int interval = 1; +unsigned int interval = 1; void die(const char *fmt, ...); @@ -161,6 +162,10 @@ int load_configuration(const char *configfile) { { use_colors = true; } + OPT("get_ethspeed") + { + get_ethspeed = true; + } OPT("normcolors") { wmii_normcolors = strdup(dest_value); @@ -179,7 +184,7 @@ int load_configuration(const char *configfile) { fclose(handle); if (wmii_path == NULL) - die("No wmii_path specified in configuration file"); + exit(-4); return result; }