aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2020-07-29 23:11:46 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2020-07-29 23:11:46 +0100
commit612e6fdfa43ac716a2431d695de842f7127c12d0 (patch)
tree58532da4c219499547e0ab5554d78ea112eea466 /conf.c
parent818f5500fa11d5bf57c5542b20beb94d6f0dda6e (diff)
parent8deb3660926fe8278948b898b9c1b772eed2e61e (diff)
downloadwavemon-612e6fdfa43ac716a2431d695de842f7127c12d0.tar.gz
Update upstream source from tag 'upstream/0.9.1'
Update to upstream version '0.9.1' with Debian dir 559193b433abdd46788bc66e02edda248b928278
Diffstat (limited to '')
-rw-r--r--conf.c13
1 files changed, 13 insertions, 0 deletions
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,
@@ -507,6 +508,15 @@ static void init_conf_items(void)
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");
item->type = t_list;
@@ -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);
}