mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-20 19:35:44 +02:00
doc: mpd
This commit is contained in:
parent
69dcc66b8a
commit
35bd1bb66c
1 changed files with 73 additions and 0 deletions
|
@ -333,6 +333,79 @@ bar:
|
||||||
content: {string: {text: hello world}}
|
content: {string: {text: hello world}}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# MPD
|
||||||
|
|
||||||
|
This module provides MPD status such as currently playing
|
||||||
|
artist/album/song.
|
||||||
|
|
||||||
|
## TAGS
|
||||||
|
|
||||||
|
[[ *Name*
|
||||||
|
:[ *Type*
|
||||||
|
:[ *Description*
|
||||||
|
| state
|
||||||
|
: string
|
||||||
|
: One of *offline*, *stopped*, *paused* or *playing*
|
||||||
|
| repeat
|
||||||
|
: bool
|
||||||
|
: True if the *repeat* flag is set
|
||||||
|
| random
|
||||||
|
: bool
|
||||||
|
: True if the *random* flag is set
|
||||||
|
| consume
|
||||||
|
: bool
|
||||||
|
: True if the *consume* flag is set
|
||||||
|
| album
|
||||||
|
: string
|
||||||
|
: Currently playing album (also valid in *paused* state)
|
||||||
|
| artist
|
||||||
|
: string
|
||||||
|
: Artist of currently playing song (also valid in *paused* state)
|
||||||
|
| title
|
||||||
|
: string
|
||||||
|
: Title of currently playing song (also valid in *paused* state)
|
||||||
|
| pos
|
||||||
|
: string
|
||||||
|
: *%M:%S*-formatted string describing the song's current position
|
||||||
|
(also see _elapsed_)
|
||||||
|
| end
|
||||||
|
: string
|
||||||
|
: *%M:%S*-formatted string describing the song's total length (also
|
||||||
|
see _duration_)
|
||||||
|
| elapsed
|
||||||
|
: realtime
|
||||||
|
: Position in currently playing song, in milliseconds. Can be used
|
||||||
|
with a _progress-bar_ particle.
|
||||||
|
| duration
|
||||||
|
: int
|
||||||
|
: Length of currently playing song, in milliseconds
|
||||||
|
|
||||||
|
## CONFIGURATION
|
||||||
|
|
||||||
|
[[ *Name*
|
||||||
|
:[ *Type*
|
||||||
|
:[ *Req*
|
||||||
|
:[ *Description*
|
||||||
|
| host
|
||||||
|
: string
|
||||||
|
: yes
|
||||||
|
: Hostname/IP/unix-socket to connect to
|
||||||
|
| port
|
||||||
|
: int
|
||||||
|
: no
|
||||||
|
: TCP port to connect to
|
||||||
|
|
||||||
|
## EXAMPLES
|
||||||
|
|
||||||
|
```
|
||||||
|
bar:
|
||||||
|
left:
|
||||||
|
- mpd:
|
||||||
|
host: /run/mpd/socket
|
||||||
|
content:
|
||||||
|
string: {text: "{artist} - {album} - {title} ({end})"}
|
||||||
|
```
|
||||||
|
|
||||||
# SEE ALSO
|
# SEE ALSO
|
||||||
|
|
||||||
*f00bar-particles*(5), *f00bar-tags*(5), *f00bar-decorations*(5)
|
*f00bar-particles*(5), *f00bar-tags*(5), *f00bar-decorations*(5)
|
||||||
|
|
Loading…
Add table
Reference in a new issue