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
commit8deb3660926fe8278948b898b9c1b772eed2e61e (patch)
treecc46239969468c1f4017da7aac5420664b5bbd22 /conf.c
parent1fc41b776f712f321c1f355d391c6a5eaf79ebfa (diff)
downloadwavemon-8deb3660926fe8278948b898b9c1b772eed2e61e.tar.gz
New upstream version 0.9.1upstream/0.9.1upstream
Diffstat (limited to 'conf.c')
-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);
}