mirror of
https://github.com/swaywm/sway.git
synced 2026-05-02 06:46:23 -04:00
Implement bar gaps
Adds the bar subcommand `gaps <amount>|<horizontal> <vertical>|<top> <right> <bottom> <left>` to set gaps for swaybar. Due to restrictions on margins for a layer_surface, only the sides that are anchored to an edge of the screen can have gaps. Since there is support for per-side outer gaps for workspaces, those should be able to be used instead for the last side.
This commit is contained in:
parent
5341e034df
commit
1bd8463481
11 changed files with 141 additions and 1 deletions
|
|
@ -40,6 +40,12 @@ struct swaybar_config *init_config(void) {
|
|||
/* height */
|
||||
config->height = 0;
|
||||
|
||||
/* gaps */
|
||||
config->gaps.top = 0;
|
||||
config->gaps.right = 0;
|
||||
config->gaps.bottom = 0;
|
||||
config->gaps.left = 0;
|
||||
|
||||
/* colors */
|
||||
config->colors.background = 0x000000FF;
|
||||
config->colors.focused_background = 0x000000FF;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue