Waybar
Waybar copied to clipboard
Mdp filename don't work
Hello, I would like to display the name of the file currently playing with mdp when my cursor remains on the module. The problem that if I put {filename} in "tooltip-format" is "tooltip-format-disconnected" that appears even if the music is working. Here is the configuration of the module:
"mpd": {
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon} {elapsedTime:%M:%S}/{totalTime:%M:%S} ⸨{songPosition}|{queueLength}⸩ {volume}% ",
// "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
"format-disconnected": "Disconnected ",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon} Stopped ",
"unknown-tag": "N/A",
"interval": 2,
"consume-icons": {
"on": " "
},
"random-icons": {
//"off": "<span color=\"#f53c3c\"></span> ",
"on": " "
},
"repeat-icons": {
"on": " "
},
"single-icons": {
"on": "1 "
},
"state-icons": {
"paused": "",
"playing": ""
},
//"tooltip-format": "Sound: {artist} - {album} - {title}",
"tooltip-format": "{filename}",
//"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)",
"on-click": "mpc toggle",
"on-double-click": "mpc next",
"on-click-right": "mpc seek 00:00:00",
"on-double-click-right": "mpc prev"
},
Thanks to those who will take the time to help me