swaynag: allow more config options

This commit is contained in:
Brian Ashworth 2018-07-29 22:42:03 -04:00
parent ca40298af4
commit e01acb6097
10 changed files with 379 additions and 137 deletions

View file

@ -20,37 +20,77 @@ following format:
```
[name-of-type]
color=RRGGBB[AA]
option=value
```
All colors may be given in the form _RRGGBB_ or _RRGGBBAA_. The following
colors can be set:
*background*
*background=<color>*
The background color for _swaynag_.
*border*
*border=<color>*
The color to use for borders of buttons.
*border-bottom*
*border-bottom=<color>*
The color of the border line at the bottom of _swaynag_.
*button-background*
*button-background=<color>*
The background color for the buttons.
*text*
*text=<color>*
The color of the text.
The following sizing options can also be set:
*border-bottom-size=<size>*
Set the thickness of the bottom border.
*message-padding=<padding>*
Set the padding for the message.
*details-border-size=<size>*
Set the thickness for the details border.
*button-border-size=<size>*
Set the thickness for the button border.
*button-gap=<gap>*
Set the size of the gap between buttons.
*button-dismiss-gap=<gap>*
Set the size of the gap between the dismiss button and another button.
*button-margin-right=<margin>*
Set the margin from the right of the dismiss button to edge.
*button-padding=<padding>*
Set the padding for the button text.
Additionally, the following options can be assigned a default per-type:
*edge=top|bottom*
Set the edge to use.
*font=<font>*
Set the font to use.
*output=<output>*
Set the output to use. This should be the name of a _xdg\_output_.
# EXAMPLE
```
font=Monospace 12
edge=bottom
[green]
edge=top
background=00AA00
border=006600
border-bottom=004400
text=FFFFFF
button-background=00CC00
message-padding=10
```
# SEE