From 8deb3660926fe8278948b898b9c1b772eed2e61e Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Wed, 29 Jul 2020 23:11:46 +0100 Subject: New upstream version 0.9.1 --- conf.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'conf.c') diff --git a/conf.c b/conf.c index 294564b..53d1d31 100644 --- a/conf.c +++ b/conf.c @@ -64,6 +64,7 @@ struct wavemon_conf conf = { .check_geometry = false, .cisco_mac = false, + .transparent_bg = true, .override_bounds = false, .sig_min = -100, @@ -506,6 +507,15 @@ static void init_conf_items(void) item->type = t_sep; ll_push(conf_items, "*", item); + item = calloc(1, sizeof(*item)); + item->name = strdup("Use transparent background"); + item->cfname = strdup("transparent_bg"); + item->type = t_list; + item->v.i = &conf.transparent_bg; + item->list = on_off_names; + item->hidden = true; + ll_push(conf_items, "*", item); + item = calloc(1, sizeof(*item)); item->name = strdup("Startup screen"); item->cfname = strdup("startup_screen"); @@ -527,6 +537,7 @@ static void init_conf_items(void) ll_push(conf_items, "*", item); } +/** getconf handles the initialization from commandline and rc file defaults. */ void getconf(int argc, char *argv[]) { int arg, help = 0, version = 0; @@ -577,4 +588,6 @@ void getconf(int argc, char *argv[]) if (conf.if_idx < 0) err_quit("%s is not a usable wireless interface", iface); } + + atexit(write_cf); } -- cgit v1.2.3