mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-22 12:25:38 +02:00
wip: man pages
This commit is contained in:
parent
bde34d81fb
commit
0f2d9b48b8
7 changed files with 94 additions and 80 deletions
|
@ -32,8 +32,8 @@ add_man_pages(
|
||||||
f00bar.5.scd
|
f00bar.5.scd
|
||||||
|
|
||||||
f00bar-modules.5.scd
|
f00bar-modules.5.scd
|
||||||
f00bar-module-alsa.5.scd
|
|
||||||
|
|
||||||
f00bar-particles.5.scd
|
|
||||||
f00bar-decorations.5.scd
|
f00bar-decorations.5.scd
|
||||||
|
f00bar-particles.5.scd
|
||||||
|
f00bar-tags.5.scd
|
||||||
)
|
)
|
||||||
|
|
|
@ -89,3 +89,7 @@ content:
|
||||||
- background: ...
|
- background: ...
|
||||||
- underline: ...
|
- underline: ...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# SEE ALSO
|
||||||
|
|
||||||
|
*f00bar-particles*(5)
|
||||||
|
|
|
@ -1,47 +0,0 @@
|
||||||
f00bar-module-alsa(5)
|
|
||||||
|
|
||||||
# NAME
|
|
||||||
f00bar-module-alsa - configuration file
|
|
||||||
|
|
||||||
# DESCRIPTION
|
|
||||||
|
|
||||||
Monitors an alsa soundcard for volume and mute/unmute changes.
|
|
||||||
|
|
||||||
# TAGS
|
|
||||||
|
|
||||||
[[ *Name*
|
|
||||||
:[ *Type*
|
|
||||||
:[ *Description*
|
|
||||||
| volume
|
|
||||||
: range
|
|
||||||
: Volume level, with min and max as start and end range values
|
|
||||||
| muted
|
|
||||||
: bool
|
|
||||||
: True if muted, otherwise false
|
|
||||||
|
|
||||||
|
|
||||||
# CONFIGURATION
|
|
||||||
|
|
||||||
[[ *Name*
|
|
||||||
:[ *Type*
|
|
||||||
:[ *Req*
|
|
||||||
:[ *Description*
|
|
||||||
| card
|
|
||||||
: string
|
|
||||||
: yes
|
|
||||||
: The soundcard name. _Default_ might work.
|
|
||||||
| mixer
|
|
||||||
: string
|
|
||||||
: yes
|
|
||||||
: Mixer channel to monitor. _Master_ might work.
|
|
||||||
|
|
||||||
# EXAMPLES
|
|
||||||
|
|
||||||
```
|
|
||||||
bar:
|
|
||||||
left:
|
|
||||||
- alsa:
|
|
||||||
card: hw:PCH
|
|
||||||
mixer: Master
|
|
||||||
content: {string: {text: "{volume}"}}
|
|
||||||
```
|
|
|
@ -10,7 +10,7 @@ bar.
|
||||||
|
|
||||||
All modules expose their data through *tags*. Each tag has a *name*,
|
All modules expose their data through *tags*. Each tag has a *name*,
|
||||||
*type* and *value*. The name and type is fixed, while the value
|
*type* and *value*. The name and type is fixed, while the value
|
||||||
typically changes over time. See *TAGS*.
|
typically changes over time. See *f00bar-tags(5)*.
|
||||||
|
|
||||||
The tags are rendered by _particles_. Each particle has its own way of
|
The tags are rendered by _particles_. Each particle has its own way of
|
||||||
representing tag values. The simplest one is the _string_ particle,
|
representing tag values. The simplest one is the _string_ particle,
|
||||||
|
@ -33,39 +33,49 @@ following attributes are supported by all modules:
|
||||||
: associative array
|
: associative array
|
||||||
: Free-to-use associative array, where you can put yaml anchor definitions
|
: Free-to-use associative array, where you can put yaml anchor definitions
|
||||||
|
|
||||||
# TAGS
|
# ALSA
|
||||||
|
|
||||||
Tags are the data carriers; it is through tags that modules expose
|
Monitors an alsa soundcard for volume and mute/unmute changes.
|
||||||
their information. Each module defines its own set of tags.
|
|
||||||
|
|
||||||
The available tag *types* are:
|
## TAGS
|
||||||
|
|
||||||
[[ *Type*
|
[[ *Name*
|
||||||
|
:[ *Type*
|
||||||
:[ *Description*
|
:[ *Description*
|
||||||
| string
|
| volume
|
||||||
: Value is a string. Rendered as-is by the _string_ particle.
|
: range
|
||||||
| int
|
: Volume level, with min and max as start and end range values
|
||||||
: Value is an integer. Rendered in base 10 by the _string_ particle.
|
| muted
|
||||||
| bool
|
: bool
|
||||||
: Value is true or false. Rendered as "true" or "false" by the _string_
|
: True if muted, otherwise false
|
||||||
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
|
|
||||||
_:min_ or _:max_ suffixes by be added to instead render the mininum
|
|
||||||
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 the
|
|
||||||
*f00bar-particle-progress-bar*(5). Other particles can still render
|
|
||||||
the tag's value. And, the _string_ particle recognizes the _:unit_
|
|
||||||
suffix, which will be translated to a "s" for a tag with "seconds"
|
|
||||||
resolution, or "ms" for one with "milliseconds" resolution.
|
|
||||||
|
|
||||||
# MODULES
|
|
||||||
|
|
||||||
- *f00bar-module-alsa*(5)
|
## CONFIGURATION
|
||||||
|
|
||||||
|
[[ *Name*
|
||||||
|
:[ *Type*
|
||||||
|
:[ *Req*
|
||||||
|
:[ *Description*
|
||||||
|
| card
|
||||||
|
: string
|
||||||
|
: yes
|
||||||
|
: The soundcard name. _Default_ might work.
|
||||||
|
| mixer
|
||||||
|
: string
|
||||||
|
: yes
|
||||||
|
: Mixer channel to monitor. _Master_ might work.
|
||||||
|
|
||||||
|
## EXAMPLES
|
||||||
|
|
||||||
|
```
|
||||||
|
bar:
|
||||||
|
left:
|
||||||
|
- alsa:
|
||||||
|
card: hw:PCH
|
||||||
|
mixer: Master
|
||||||
|
content: {string: {text: "{volume}"}}
|
||||||
|
```
|
||||||
|
|
||||||
|
# SEE ALSO
|
||||||
|
|
||||||
|
*f00bar-particles*(5), *f00bar-tags*(5), *f00bar-decorations*(5)
|
||||||
|
|
|
@ -303,3 +303,7 @@ content:
|
||||||
empty: {string: {text: ╌}}
|
empty: {string: {text: ╌}}
|
||||||
indicator: {string: {text: ┼}}
|
indicator: {string: {text: ┼}}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# SEE ALSO
|
||||||
|
|
||||||
|
*f00bar-tags*(5), *f00bar-decorations*(5)
|
||||||
|
|
38
doc/f00bar-tags.5.scd
Normal file
38
doc/f00bar-tags.5.scd
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
f00bar-tags(5)
|
||||||
|
|
||||||
|
# NAME
|
||||||
|
f00bar-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:
|
||||||
|
|
||||||
|
[[ *Type*
|
||||||
|
:[ *Description*
|
||||||
|
| 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 is true or false. 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
|
||||||
|
_:min_ or _:max_ suffixes by be added to instead render the mininum
|
||||||
|
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 the
|
||||||
|
*f00bar-particle-progress-bar*(5). Other particles can still render
|
||||||
|
the tag's value. And, the _string_ particle recognizes the _:unit_
|
||||||
|
suffix, which will be translated to a "s" for a tag with "seconds"
|
||||||
|
resolution, or "ms" for one with "milliseconds" resolution.
|
||||||
|
|
|
@ -141,3 +141,8 @@ bar:
|
||||||
|
|
||||||
# FILES
|
# FILES
|
||||||
_$HOME/.config/f00bar/config.yml_
|
_$HOME/.config/f00bar/config.yml_
|
||||||
|
|
||||||
|
# SEE ALSO
|
||||||
|
|
||||||
|
*f00bar-modules*(5), *f00bar-particles*(5), *f00bar-tags*(5),
|
||||||
|
*f00bar-decorations*(5)
|
||||||
|
|
Loading…
Add table
Reference in a new issue