From 2582279bc1046954702311c300294c5fd9f3ae0c Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Sun, 24 Nov 2024 23:30:30 +0100 Subject: Add more config options --- src/config.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/config.c') 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); } -- cgit v1.2.3