+ unsigned int j;
+
+ cfg_opt_t general_opts[] = {
+ CFG_BOOL("colors", 1, CFGF_NONE),
+ CFG_INT("interval", 1, CFGF_NONE),
+ CFG_END()
+ };
+
+ cfg_opt_t run_watch_opts[] = {
+ CFG_STR("pidfile", NULL, CFGF_NONE),
+ CFG_STR("format", "%title: %status", CFGF_NONE),
+ CFG_END()
+ };
+
+ cfg_opt_t wireless_opts[] = {
+ CFG_STR("format_up", "W: (%quality at %essid) %ip", CFGF_NONE),
+ CFG_STR("format_down", "W: down", CFGF_NONE),
+ CFG_END()
+ };
+
+ cfg_opt_t ethernet_opts[] = {
+ CFG_STR("format_up", "E: %ip (%speed)", CFGF_NONE),
+ CFG_STR("format_down", "E: down", CFGF_NONE),
+ CFG_END()
+ };
+
+ cfg_opt_t ipv6_opts[] = {
+ CFG_STR("format", "%ip", CFGF_NONE),
+ CFG_END()
+ };
+
+ cfg_opt_t battery_opts[] = {
+ CFG_STR("format", "%status %percentage %remaining", CFGF_NONE),
+ CFG_BOOL("last_full_capacity", false, CFGF_NONE),
+ CFG_END()
+ };
+
+ cfg_opt_t time_opts[] = {
+ CFG_STR("format", "%d.%m.%Y %H:%M:%S", CFGF_NONE),
+ CFG_END()
+ };
+
+ cfg_opt_t load_opts[] = {
+ CFG_STR("format", "%5min %10min %15min", CFGF_NONE),
+ CFG_END()
+ };
+
+ cfg_opt_t temp_opts[] = {
+ CFG_STR("format", "%degrees C", CFGF_NONE),
+ CFG_END()
+ };
+
+ cfg_opt_t disk_opts[] = {
+ CFG_STR("format", "%free", CFGF_NONE),
+ CFG_END()
+ };
+
+ cfg_opt_t opts[] = {
+ CFG_STR_LIST("order", "{ipv6,\"run_watch DHCP\",\"wireless wlan0\",\"ethernet eth0\",\"battery 0\",\"cpu_temperature 0\",load,time}", CFGF_NONE),
+ CFG_SEC("general", general_opts, CFGF_NONE),
+ CFG_SEC("run_watch", run_watch_opts, CFGF_TITLE | CFGF_MULTI),
+ CFG_SEC("wireless", wireless_opts, CFGF_TITLE | CFGF_MULTI),
+ CFG_SEC("ethernet", ethernet_opts, CFGF_TITLE | CFGF_MULTI),
+ CFG_SEC("battery", battery_opts, CFGF_TITLE | CFGF_MULTI),
+ CFG_SEC("cpu_temperature", temp_opts, CFGF_TITLE | CFGF_MULTI),
+ CFG_SEC("disk", disk_opts, CFGF_TITLE | CFGF_MULTI),
+ CFG_SEC("ipv6", ipv6_opts, CFGF_TITLE),
+ CFG_SEC("time", time_opts, CFGF_NONE),
+ CFG_SEC("load", load_opts, CFGF_NONE),
+ CFG_END()
+ };