aboutsummaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/config.c b/src/config.c
index 3bbce6d..c8b63b4 100644
--- a/src/config.c
+++ b/src/config.c
@@ -22,15 +22,19 @@ config_enum_t text_align_enum[] = {
};
const config_entry_t bar_entries[] = {
- { "width", CONFIG_UINT, NULL, offsetof(config_t, width) },
- { "height", CONFIG_UINT, NULL, offsetof(config_t, height) },
- { "font", CONFIG_STRING, NULL, offsetof(config_t, font) },
- { "monitor", CONFIG_STRING, NULL, offsetof(config_t, monitor) },
{ "override-redirect", CONFIG_BOOL, NULL, offsetof(config_t, override_redirect) },
{ "action-strict-run", CONFIG_BOOL, NULL, offsetof(config_t, action_strict_run) },
{ "action-strict-set", CONFIG_BOOL, NULL, offsetof(config_t, action_strict_set) },
{ "action-fail-fast", CONFIG_BOOL, NULL, offsetof(config_t, action_failfast) },
+ { "wm-name", CONFIG_STRING, NULL, offsetof(config_t, wm_name) },
+ { "wm-struts", CONFIG_BOOL, NULL, offsetof(config_t, wm_struts) },
{ "background", CONFIG_GRADIENT, NULL, offsetof(config_t, background) },
+ { "font", CONFIG_STRING, NULL, offsetof(config_t, font) },
+ { "monitor", CONFIG_STRING, NULL, offsetof(config_t, monitor) },
+ { "width", CONFIG_UINT, NULL, offsetof(config_t, width) },
+ { "height", CONFIG_UINT, NULL, offsetof(config_t, height) },
+ { "x-offset", CONFIG_UINT, NULL, offsetof(config_t, x_offset) },
+ { "y-offset", CONFIG_UINT, NULL, offsetof(config_t, y_offset) },
{ "scale", CONFIG_DOUBLE, NULL, offsetof(config_t, scale) },
{ 0 },
};
@@ -864,4 +868,5 @@ void config_free(config_t *config)
gradient_free(&config->background);
free(config->font);
free(config->monitor);
+ free(config->wm_name);
}