diff options
| author | Federico Angelilli <code@fedang.net> | 2024-11-24 23:30:30 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-11-24 23:30:30 +0100 |
| commit | 2582279bc1046954702311c300294c5fd9f3ae0c (patch) | |
| tree | cf2e1438c225f7cb66ace66b91098e788afdcb1b /src/config.c | |
| parent | 7ed39aca6d07b8ca69c0373f5623ffd6a5564412 (diff) | |
Add more config options
Diffstat (limited to 'src/config.c')
| -rw-r--r-- | src/config.c | 13 |
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); } |
