Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mdp filename don't work #3186

Open
fadri14 opened this issue Apr 30, 2024 · 0 comments
Open

Mdp filename don't work #3186

fadri14 opened this issue Apr 30, 2024 · 0 comments
Labels
bug Something isn't working clock custom mpd

Comments

@fadri14
Copy link

fadri14 commented Apr 30, 2024

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

@github-actions github-actions bot added bug Something isn't working clock custom mpd labels Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working clock custom mpd
Projects
None yet
Development

No branches or pull requests

1 participant