waybar/man/waybar-mpd.5.scd

221 lines
5.5 KiB
Plaintext
Raw Normal View History

2019-08-26 16:23:07 +02:00
waybar-mpd(5)
# NAME
waybar - mpd module
# DESCRIPTION
2019-08-27 11:40:19 +02:00
The *mpd* module displays information about a running "Music Player Daemon" instance.
2019-08-26 16:23:07 +02:00
# CONFIGURATION
Addressed by *mpd*
*server*: ++
2019-12-29 05:14:33 +01:00
typeof: string ++
The network address or Unix socket path of the MPD server. If empty, connect to the default host.
2019-08-26 16:23:07 +02:00
*port*: ++
2019-12-29 05:14:33 +01:00
typeof: integer ++
The port MPD listens to. If empty, use the default port.
2019-08-26 16:23:07 +02:00
*password*: ++
typeof: string ++
The password required to connect to the MPD server. If empty, no password is sent to MPD.
2019-08-26 16:23:07 +02:00
*interval*: ++
2019-12-29 05:14:33 +01:00
typeof: integer++
default: 5 ++
The interval in which the connection to the MPD server is retried
2019-08-26 16:23:07 +02:00
*timeout*: ++
2019-12-29 05:14:33 +01:00
typeof: integer++
default: 30 ++
The timeout for the connection. Change this if your MPD server has a low `connection_timeout` setting
2019-08-26 16:23:07 +02:00
*unknown-tag*: ++
2019-12-29 05:14:33 +01:00
typeof: string ++
default: "N/A" ++
The text to display when a tag is not present in the current song, but used in `format`
2019-08-26 16:23:07 +02:00
*format*: ++
2019-12-29 05:14:33 +01:00
typeof: string ++
default: "{album} - {artist} - {title}" ++
2019-10-15 18:24:04 +02:00
Information displayed when a song is playing.
2019-08-26 16:23:07 +02:00
*format-stopped*: ++
2019-12-29 05:14:33 +01:00
typeof: string ++
default: "stopped" ++
Information displayed when the player is stopped.
2019-08-26 16:23:07 +02:00
2019-10-15 18:24:04 +02:00
*format-paused*: ++
typeof: string ++
This format is used when a song is paused.
2019-08-26 16:23:07 +02:00
*format-disconnected*: ++
2019-12-29 05:14:33 +01:00
typeof: string ++
default: "disconnected" ++
Information displayed when the MPD server can't be reached.
2019-08-26 16:23:07 +02:00
*tooltip*: ++
2019-12-29 05:14:33 +01:00
typeof: bool ++
default: true ++
Option to disable tooltip on hover.
2019-08-26 16:23:07 +02:00
*tooltip-format*: ++
2019-12-29 05:14:33 +01:00
typeof: string ++
default: "MPD (connected)" ++
Tooltip information displayed when connected to MPD.
2019-08-26 16:23:07 +02:00
*tooltip-format-disconnected*: ++
2019-12-29 05:14:33 +01:00
typeof: string ++
default: "MPD (disconnected)" ++
Tooltip information displayed when the MPD server can't be reached.
2019-08-26 16:23:07 +02:00
*rotate*: ++
2019-12-29 05:14:33 +01:00
typeof: integer ++
Positive value to rotate the text label.
2019-08-26 16:23:07 +02:00
*max-length*: ++
2019-12-29 05:14:33 +01:00
typeof: integer ++
The maximum length in character the module should display.
2019-08-26 16:23:07 +02:00
*on-click*: ++
2019-12-29 05:14:33 +01:00
typeof: string ++
Command to execute when clicked on the module.
*on-click-middle*: ++
typeof: string ++
Command to execute when middle-clicked on the module using mousewheel.
2019-08-26 16:23:07 +02:00
*on-click-right*: ++
2019-12-29 05:14:33 +01:00
typeof: string ++
Command to execute when you right clicked on the module.
2019-08-26 16:23:07 +02:00
2020-04-12 18:35:41 +02:00
*on-update*: ++
typeof: string ++
Command to execute when the module is updated.
2019-08-26 16:23:07 +02:00
*on-scroll-up*: ++
2019-12-29 05:14:33 +01:00
typeof: string ++
Command to execute when scrolling up on the module.
2019-08-26 16:23:07 +02:00
*on-scroll-down*: ++
2019-12-29 05:14:33 +01:00
typeof: string ++
Command to execute when scrolling down on the module.
2019-08-26 16:23:07 +02:00
*smooth-scrolling-threshold*: ++
2019-12-29 05:14:33 +01:00
typeof: double ++
Threshold to be used when scrolling.
2019-08-26 16:23:07 +02:00
*state-icons*: ++
2019-12-29 05:14:33 +01:00
typeof: object ++
default: {} ++
Icon to show depending on the play/pause state of the player (*{ "playing": "...", "paused": "..." }*)
2019-08-26 16:23:07 +02:00
*consume-icons*: ++
2019-12-29 05:14:33 +01:00
typeof: object ++
default: {} ++
Icon to show depending on the "consume" option (*{ "on": "...", "off": "..." }*)
2019-08-26 16:23:07 +02:00
*random-icons*: ++
2019-12-29 05:14:33 +01:00
typeof: object ++
default: {} ++
Icon to show depending on the "random" option (*{ "on": "...", "off": "..." }*)
2019-08-26 16:23:07 +02:00
*repeat-icons*: ++
2019-12-29 05:14:33 +01:00
typeof: object ++
default: {} ++
Icon to show depending on the "repeat" option (*{ "on": "...", "off": "..." }*)
2019-08-26 16:23:07 +02:00
*single-icons*: ++
2019-12-29 05:14:33 +01:00
typeof: object ++
default: {} ++
Icon to show depending on the "single" option (*{ "on": "...", "off": "..." }*)
2019-08-26 16:23:07 +02:00
# FORMAT REPLACEMENTS
## WHEN PLAYING/PAUSED
*{artist}*: The artist of the current song
*{albumArtist}*: The artist of the current album
*{album}*: The album of the current song
*{title}*: The title of the current song
*{date}*: The date of the current song
*{elapsedTime}*: The current position of the current song. To format as a date/time (see example configuration)
*{totalTime}*: The length of the current song. To format as a date/time (see example configuration)
2020-09-13 17:32:00 +02:00
*{songPosition}*: The position of the current song.
*{queueLength}*: The length of the current queue.
2019-08-26 16:23:07 +02:00
*{stateIcon}*: The icon corresponding the playing or paused status of the player (see *state-icons* option)
*{consumeIcon}*: The icon corresponding the "consume" option (see *consume-icons* option)
*{randomIcon}*: The icon corresponding the "random" option (see *random-icons* option)
*{repeatIcon}*: The icon corresponding the "repeat" option (see *repeat-icons* option)
*{singleIcon}*: The icon corresponding the "single" option (see *single-icons* option)
## WHEN STOPPED
*{consumeIcon}*: The icon corresponding the "consume" option (see *consume-icons* option)
*{randomIcon}*: The icon corresponding the "random" option (see *random-icons* option)
*{repeatIcon}*: The icon corresponding the "repeat" option (see *repeat-icons* option)
*{singleIcon}*: The icon corresponding the "single" option (see *single-icons* option)
## WHEN DISCONNECTED
Currently, no format replacements when disconnected.
# EXAMPLES
```
"mpd": {
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ",
"format-disconnected": "Disconnected ",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
"interval": 2,
"consume-icons": {
"on": " " // Icon shows only when "consume" is on
},
"random-icons": {
"off": "<span color=\"#f53c3c\"></span> ", // Icon grayed out when "random" is off
"on": " "
},
"repeat-icons": {
"on": " "
},
"single-icons": {
"on": "1 "
},
"state-icons": {
"paused": "",
"playing": ""
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)"
}
```
# STYLE
- *#mpd*
- *#mpd.disconnected*
- *#mpd.stopped*
- *#mpd.playing*
- *#mpd.paused*