yambar-tags(5)
๐ฆ yambar-tags(5) ๐ฆ
Okay bestie, this is the yambar-tags(5) page from the File Formats Manual, and itโs literally the tea on how tags work in yambar. ๐
๐ธ NAME ๐ธ
yambar-tags - configuration file
โจ DESCRIPTION โจ
Tags are the data carriers; it is through tags that modules expose their information. Each module defines its own set of tags.
The available tag types are:
stringโ Value is a string. Rendered as-is by the string particle. โจintโ Value is an integer. Rendered in base 10 by the string particle. ๐ขboolโ Value istrueorfalse. Rendered as"true"or"false"by the string particle. โfloatโ Value is a float. Rendered in base 10, with two decimal digits by the string particle. ๐rangeโ Value is an integer, with a minimum and maximum value associated with it. By default, the string particle renders the value. The:minor:maxsuffixes may be added to instead render the minimum or maximum value ("{tag_name:min}"). ๐ฏrealtimeโ Value is an integer that changes in a predictable manner (in"realtime"). This allows the particle to update itself periodically. Only supported by theyambar-particle-progress-bar(5). Other particles can still render the tagโs value. And, the string particle recognizes the:unitsuffix, which will be translated to a"s"for a tag with"seconds"resolution, or"ms"for one with"milliseconds"resolution. โฑ๏ธ
๐ FORMATTING ๐
A tag may be followed by one or more formatters that alter the tagโs rendition.
Formatters are added by appending a : separated list of formatter names:
"{tag_name:max:hex}"
In the formatter breakdown below, kind describes the type of action performed by the formatter:
format: changes the representation of the tagโs valueselector: changes what to render
In general, formatters of the same kind cannot be combined; if multiple formatters of the same kind are specified, the last one will be used. Periodt. ๐
๐ Formatter vibes ๐
[0]<number>[.]โ Kind:format. Applies to: Numeric tags (integer and floats). The width reserved to the field. The leading0is optional and indicates zero padding, as opposed to space padding. The trailing.is also optional. โจ.<number>โ Kind:format. Applies to: Float tags. How many decimals to print.[0]<N>[.]<M>โ Kind:format. Applies to:N: numeric tags,M: float tags. Combined version of the two previous formatters.hexโ Kind:format. Applies to: All tag types. Renders a tagโs value in hex.octโ Kind:format. Applies to: All tag types. Renders a tagโs value in octal.%โ Kind:format. Applies to: Range tags. Renders a range tagโs value as a percentage value. ๐kb,mb,gbโ Kind:format. Applies to: All tag types. Renders a tagโs value (in decimal) divided by1000,1000^2or1000^3. Note: no unit suffix is appended. ๐งฎkib,mib,gibโ Kind:format. Applies to: All tag types. Same askb,mbandgb, but divide by1024^ninstead of1000^n. ๐พminโ Kind:selector. Applies to: Range tags. Renders a range tagโs minimum value. ๐ฝmaxโ Kind:selector. Applies to: Range tags. Renders a range tagโs maximum value. ๐ผunitโ Kind:selector. Applies to: Realtime tags. Renders a realtime tagโs unit (e.g."s", or"ms"). โฒ๏ธ
๐ฅ EXAMPLES ๐ฅ
- A numeric (float or int) tag with at least 3 digits, zero-padded if necessary:
{tag:03}
- A float tag with 2 decimals:
{tag:.2}
- A "byte count" tag in gigabytes:
{tag:gib}GB
๐ Thatโs the whole thing, bestie. Source/version: yambar-tags(5) ยท manual: File Formats Manual ยท date: 2024-04-22 โ go make your bar iconic. ๐ซถโจ
๐ฆ where this page comes from
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 ยท MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 ยท MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 ยท MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 ยท MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms