1waybar-mpd(5)                 File Formats Manual                waybar-mpd(5)
2
3
4

NAME

6       waybar - mpd module
7

DESCRIPTION

9       The mpd module displays information about a running "Music Player Dae‐
10       mon" instance.
11

CONFIGURATION

13       Addressed by mpd
14
15       server:
16            typeof: string
17            The network address or Unix socket path of the MPD server. If
18       empty, connect to the default host.
19
20       port:
21            typeof: integer
22            The port MPD listens to. If empty, use the default port.
23
24       password:
25            typeof: string
26            The password required to connect to the MPD server. If empty, no
27       password is sent to MPD.
28
29       interval:
30            typeof: integer
31            default: 5
32            The interval in which the connection to the MPD server is retried
33
34       timeout:
35            typeof: integer
36            default: 30
37            The timeout for the connection. Change this if your MPD server has
38       a low `connection_timeout` setting
39
40       unknown-tag:
41            typeof: string
42            default: "N/A"
43            The text to display when a tag is not present in the current song,
44       but used in `format`
45
46       format:
47            typeof: string
48            default: "{album} - {artist} - {title}"
49            Information displayed when a song is playing.
50
51       format-stopped:
52            typeof: string
53            default: "stopped"
54            Information displayed when the player is stopped.
55
56       format-paused:
57            typeof: string
58            This format is used when a song is paused.
59
60       format-disconnected:
61            typeof: string
62            default: "disconnected"
63            Information displayed when the MPD server can't be reached.
64
65       tooltip:
66            typeof: bool
67            default: true
68            Option to disable tooltip on hover.
69
70       tooltip-format:
71            typeof: string
72            default: "MPD (connected)"
73            Tooltip information displayed when connected to MPD.
74
75       tooltip-format-disconnected:
76            typeof: string
77            default: "MPD (disconnected)"
78            Tooltip information displayed when the MPD server can't be
79       reached.
80
81       artist-len:
82           typeof: integer
83           Maximum length of the Artist tag.
84
85       album-len:
86           typeof: integer
87           Maximum length of the Album tag.
88
89       album-artist-len:
90           typeof: integer
91           Maximum length of the Album Artist tag.
92
93       title-len:
94           typeof: integer
95           Maximum length of the Title tag.
96
97       rotate:
98            typeof: integer
99            Positive value to rotate the text label.
100
101       max-length:
102            typeof: integer
103            The maximum length in character the module should display.
104
105       min-length:
106           typeof: integer
107           The minimum length in characters the module should take up.
108
109       align:
110           typeof: float
111           The alignment of the text, where 0 is left-aligned and 1 is right-
112       aligned. If the module is rotated, it will follow the flow of the text.
113
114       on-click:
115            typeof: string
116            Command to execute when clicked on the module.
117
118       on-click-middle:
119            typeof: string
120            Command to execute when middle-clicked on the module using mouse‐
121       wheel.
122
123       on-click-right:
124            typeof: string
125            Command to execute when you right clicked on the module.
126
127       on-update:
128            typeof: string
129            Command to execute when the module is updated.
130
131       on-scroll-up:
132            typeof: string
133            Command to execute when scrolling up on the module.
134
135       on-scroll-down:
136            typeof: string
137            Command to execute when scrolling down on the module.
138
139       smooth-scrolling-threshold:
140            typeof: double
141            Threshold to be used when scrolling.
142
143       state-icons:
144            typeof: object
145            default: {}
146            Icon to show depending on the play/pause state of the player ({
147       "playing": "...", "paused": "..." })
148
149       consume-icons:
150            typeof: object
151            default: {}
152            Icon to show depending on the "consume" option ({ "on": "...",
153       "off": "..." })
154
155       random-icons:
156            typeof: object
157            default: {}
158            Icon to show depending on the "random" option ({ "on": "...",
159       "off": "..." })
160
161       repeat-icons:
162            typeof: object
163            default: {}
164            Icon to show depending on the "repeat" option ({ "on": "...",
165       "off": "..." })
166
167       single-icons:
168            typeof: object
169            default: {}
170            Icon to show depending on the "single" option ({ "on": "...",
171       "off": "..." })
172

FORMAT REPLACEMENTS

174   WHEN PLAYING/PAUSED
175       {artist}: The artist of the current song
176
177       {albumArtist}: The artist of the current album
178
179       {album}: The album of the current song
180
181       {title}: The title of the current song
182
183       {date}: The date of the current song
184
185       {elapsedTime}: The current position of the current song. To format as a
186       date/time (see example configuration)
187
188       {totalTime}: The length of the current song. To format as a date/time
189       (see example configuration)
190
191       {songPosition}: The position of the current song.
192
193       {queueLength}: The length of the current queue.
194
195       {stateIcon}: The icon corresponding the playing or paused status of the
196       player (see state-icons option)
197
198       {consumeIcon}: The icon corresponding the "consume" option (see con‐
199       sume-icons option)
200
201       {randomIcon}: The icon corresponding the "random" option (see random-
202       icons option)
203
204       {repeatIcon}: The icon corresponding the "repeat" option (see repeat-
205       icons option)
206
207       {singleIcon}: The icon corresponding the "single" option (see single-
208       icons option)
209
210   WHEN STOPPED
211       {consumeIcon}: The icon corresponding the "consume" option (see con‐
212       sume-icons option)
213
214       {randomIcon}: The icon corresponding the "random" option (see random-
215       icons option)
216
217       {repeatIcon}: The icon corresponding the "repeat" option (see repeat-
218       icons option)
219
220       {singleIcon}: The icon corresponding the "single" option (see single-
221       icons option)
222
223   WHEN DISCONNECTED
224       Currently, no format replacements when disconnected.
225

EXAMPLES

227           "mpd": {
228                "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ",
229                "format-disconnected": "Disconnected ",
230                "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
231                "interval": 2,
232                "consume-icons": {
233                     "on": " " // Icon shows only when "consume" is on
234                },
235                "random-icons": {
236                     "off": "<span color="#f53c3c"></span> ", // Icon grayed out when "random" is off
237                     "on": " "
238                },
239                "repeat-icons": {
240                     "on": " "
241                },
242                "single-icons": {
243                     "on": "1 "
244                },
245                "state-icons": {
246                     "paused": "",
247                     "playing": ""
248                },
249                "tooltip-format": "MPD (connected)",
250                "tooltip-format-disconnected": "MPD (disconnected)"
251           }
252

STYLE

254#mpd
255#mpd.disconnected
256#mpd.stopped
257#mpd.playing
258#mpd.paused
259
260
261
262                                  2021-04-15                     waybar-mpd(5)
Impressum