mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05: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
|
|
@ -61,6 +61,13 @@ Sway allows configuring swaybar in the sway configuration file.
|
|||
*binding\_mode\_indicator* yes|no
|
||||
Enable or disable binding mode indicator. Default is _yes_.
|
||||
|
||||
*gaps* <all> | <horizontal> <vertical> | <top> <right> <bottom> <left>
|
||||
Sets the gaps from the edge of the screen for the bar. Gaps can either be
|
||||
set all at once, per direction, or per side. Note that only sides that
|
||||
touch an edge of the screen can have gaps. For the side that does not
|
||||
touch an edge of the screen, per-side outer gaps for workspaces may be of
|
||||
use.
|
||||
|
||||
*height* <height>
|
||||
Sets the height of the bar. Default height will match the font size.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue