diff options
author | Kenneth Lyons <ixjlyons@gmail.com> | 2015-10-05 01:10:01 -0700 |
---|---|---|
committer | Kenneth Lyons <ixjlyons@gmail.com> | 2015-12-04 10:27:18 -0800 |
commit | dcd0518e25d7aa84a720780cb70b3f8fca867972 (patch) | |
tree | be4adabae8ccab52113198b7b01b7a17fee0244c /man | |
parent | 876c1cef8d182ae1898368b415cf67dede279036 (diff) |
Added support for Pango markup.
Diffstat (limited to 'man')
-rw-r--r-- | man/i3status.man | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/man/i3status.man b/man/i3status.man index d550b81..0b5b367 100644 --- a/man/i3status.man +++ b/man/i3status.man @@ -184,6 +184,13 @@ format as the separator is drawn by i3bar directly otherwise. For the other output formats, the provided non-empty string will be automatically enclosed with the necessary coloring bits if color support is enabled. +i3bar supports Pango markup, allowing your format strings to specify font +color, size, etc. by setting the +markup+ directive to "pango". Note that the +ampersand ("&"), less-than ("<"), greater-than (">"), single-quote ("'"), and +double-quote (""") characters need to be replaced with "`&`", "`<`", +"`>`", "`'`", and "`"`" respectively. This is done automatically +for generated content (e.g. wireless ESSID, time). + *Example configuration*: ------------------------------------------------------------- general { @@ -417,6 +424,18 @@ in the +tztime+ module. *Example timezone*: +Europe/Berlin+ +If you would like to use markup in this section, there is a separate ++format_time+ option that is automatically escaped. Its output then replaces +%time in the format string. + +*Example configuration (markup)*: +------------------------------------------------------------- +tztime time { + format = "<span foreground='#ffffff'>time:</span> %time" + format_time = "%H:%M %Z" +} +------------------------------------------------------------- + === DDate Outputs the current discordian date in user-specified format. See +ddate(1)+ for |