diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-07-28 09:34:25 -0400 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2018-08-01 22:47:54 -0400 |
commit | 8463a2896a932cd99f3dc93608b03cb4aba93293 (patch) | |
tree | b8c4ba994cf4d9ca7510d0f80a1864cce144092a /swaynag/swaynag.5.scd | |
parent | Address first round review for swaynag (diff) | |
download | sway-8463a2896a932cd99f3dc93608b03cb4aba93293.tar.gz sway-8463a2896a932cd99f3dc93608b03cb4aba93293.tar.zst sway-8463a2896a932cd99f3dc93608b03cb4aba93293.zip |
swaynag: implement config file support
Diffstat (limited to 'swaynag/swaynag.5.scd')
-rw-r--r-- | swaynag/swaynag.5.scd | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/swaynag/swaynag.5.scd b/swaynag/swaynag.5.scd new file mode 100644 index 00000000..a4e05e3a --- /dev/null +++ b/swaynag/swaynag.5.scd | |||
@@ -0,0 +1,57 @@ | |||
1 | swaynag(5) | ||
2 | |||
3 | # NAME | ||
4 | |||
5 | swaynag - swaynag configuration file | ||
6 | |||
7 | # SYNOPSIS | ||
8 | |||
9 | $HOME/.swaynag/config, $XDG\_CONFIG\_HOME/swaynag/config, | ||
10 | SYSCONFDIR/swaynag/config | ||
11 | |||
12 | # CONFIG FILE | ||
13 | At the top of the config file, _swaynag_ options can be set using the format | ||
14 | _long-option=value_. These will be used as default values if _swaynag_ is not | ||
15 | given the option. This can be useful for setting a preferred font, output, and | ||
16 | edge. | ||
17 | |||
18 | Below the options, custom types may be defined. To define a type, use the | ||
19 | following format: | ||
20 | |||
21 | ``` | ||
22 | [name-of-type] | ||
23 | color=RRGGBB[AA] | ||
24 | ``` | ||
25 | |||
26 | All colors may be given in the form _RRGGBB_ or _RRGGBBAA_. The following | ||
27 | colors can be set: | ||
28 | |||
29 | *background* | ||
30 | The background color for _swaynag_. | ||
31 | |||
32 | *border* | ||
33 | The color to use for borders of buttons. | ||
34 | |||
35 | *border-bottom* | ||
36 | The color of the border line at the bottom of _swaynag_. | ||
37 | |||
38 | *button-background* | ||
39 | The background color for the buttons. | ||
40 | |||
41 | *text* | ||
42 | The color of the text. | ||
43 | |||
44 | # EXAMPLE | ||
45 | ``` | ||
46 | font=Monospace 12 | ||
47 | |||
48 | [green] | ||
49 | background=00AA00 | ||
50 | border=006600 | ||
51 | border-bottom=004400 | ||
52 | text=FFFFFF | ||
53 | button-background=00CC00 | ||
54 | ``` | ||
55 | |||
56 | # SEE | ||
57 | swaynag(1) | ||