diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2022-10-30 22:04:05 +0100 |
---|---|---|
committer | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2022-10-30 22:22:08 +0100 |
commit | 0b89d4b2a7ae84a852a707d71cf2697e55581ee7 (patch) | |
tree | 5e4bb7059a174cea797348a034aef5ff829350af /include | |
parent | 327bca26d87332bddb5969fe93a6a2283f50a363 (diff) | |
download | i3-0b89d4b2a7ae84a852a707d71cf2697e55581ee7.tar.gz i3-0b89d4b2a7ae84a852a707d71cf2697e55581ee7.zip |
implement bar { padding } config directive
related to https://github.com/i3/i3/issues/3724
related to https://github.com/i3/i3/pull/4288
fixes https://github.com/i3/i3/issues/3721
Diffstat (limited to 'include')
-rw-r--r-- | include/config_directives.h | 4 | ||||
-rw-r--r-- | include/configuration.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/config_directives.h b/include/config_directives.h index a1fc57be..1cc0340f 100644 --- a/include/config_directives.h +++ b/include/config_directives.h @@ -86,6 +86,10 @@ CFGFUN(bar_id, const char *bar_id); CFGFUN(bar_output, const char *output); CFGFUN(bar_verbose, const char *verbose); CFGFUN(bar_height, const long height); +CFGFUN(bar_padding_one, const long all); +CFGFUN(bar_padding_two, const long top_and_bottom, const long right_and_left); +CFGFUN(bar_padding_three, const long top, const long right_and_left, const long bottom); +CFGFUN(bar_padding_four, const long top, const long right, const long bottom, const long left); CFGFUN(bar_modifier, const char *modifiers); CFGFUN(bar_wheel_up_cmd, const char *command); CFGFUN(bar_wheel_down_cmd, const char *command); diff --git a/include/configuration.h b/include/configuration.h index b184a7b1..5eae5f87 100644 --- a/include/configuration.h +++ b/include/configuration.h @@ -358,6 +358,8 @@ struct Barconfig { /** Defines the height of the bar in pixels. */ uint32_t bar_height; + struct Rect padding; + struct bar_colors { char *background; char *statusline; |