diff options
author | jao <jao@gnu.org> | 2020-08-09 17:04:58 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2020-08-09 17:04:58 +0100 |
commit | d45ab5ffdfeca56c491a5aad79d96c1ffa2b44bc (patch) | |
tree | 39fc8cbab0c9834560c870acdc3ed58bec0d601c /readme.md | |
parent | c6669e26e1ee9ef6ff9b0e5d2e85df15ad731140 (diff) | |
download | xmobar-d45ab5ffdfeca56c491a5aad79d96c1ffa2b44bc.tar.gz xmobar-d45ab5ffdfeca56c491a5aad79d96c1ffa2b44bc.tar.bz2 |
A bit of documentation for <box>
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -272,6 +272,23 @@ For the output template: for XFT fonts. `<fc=#FF0000,#000000:0>string</fc>` will have a background matching the bar's height. +- `<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 + lines), `Full` (a rectangle, the default). + - `color`: the color of the box lines. + - `width`: the width of the box lines. + - `offset`: an alignment char (L, C or R) followed by the amount of + 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. + + 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> + - `<fn=1>string</fn>` will print `string` with the first font from `additionalFonts`. The index `0` corresponds to the standard font. |