diff options
author | jao <jao@gnu.org> | 2020-08-09 17:55:29 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2020-08-09 17:55:29 +0100 |
commit | 3cc4a0884300a60b68595bb97a5eecc386927622 (patch) | |
tree | 8cadd457c3dd133ec16757c6f3691ce227a4ef3a /readme.md | |
parent | 1418f021efd8e4722dca69c0ba517a0e1448a22d (diff) | |
download | xmobar-3cc4a0884300a60b68595bb97a5eecc386927622.tar.gz xmobar-3cc4a0884300a60b68595bb97a5eecc386927622.tar.bz2 |
A bit more documentation for <box>
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -275,8 +275,8 @@ For the output template: - `<box>string</box>` will print string surrounded by a box in the foreground color. The `box` tag accepts several optional arguments to tailor its looks: - - `type`: `Top`, `Bottom`, `HBoth` (a single line above or below - string, or both), `Left`, `Right`, `VBoth` (single vertical + - `type`: `Top`, `Bottom`, `VBoth` (a single line above or below + string, or both), `Left`, `Right`, `HBoth` (single vertical lines), `Full` (a rectangle, the default). - `color`: the color of the box lines. - `width`: the width of the box lines. @@ -284,10 +284,18 @@ For the output template: pixels to offset the box lines; the alignment denotes the position of the resulting line, with L/R meaning top/bottom for the vertical lines, and left/right for horizontal ones. + - `mt`, `mb`, `ml`, `mr` specify margins to be added at the top, + bottom, left and right lines For instance, `l=R5` asks for a + margin of 5 pixels to the left, with right alignment. - For example, a box underlining its text with a line of with 2 and a - margin of 3 pixels either side would be: - <box type=Bottom width=2 offset=C3>string</box> + For example, a box underlining its text with a red line of with 2: + + <box type=Bottom width=2 color=red>string</box> + + and if you wanted an underline and an overline with a margin of 2 + pixels either side: + + <box type=VBoth mt=2 mb=2>string</box> - `<fn=1>string</fn>` will print `string` with the first font from `additionalFonts`. The index `0` corresponds to the standard font. |