Skip to content

hide mpd module completely info when stopped or disconnected #782

@DyslexicAtheist

Description

@DyslexicAtheist

Hi,

as the title says I'm trying to not show the mpd info when it's in state stopped or disconnected. My current setup achieves this by overriding the following format options in waybar/config with empty strings:

        "format-disconnected": "",
        "format-stopped": "",

this is done in combination with transparent `color and background-color in style.css:

#mpd {
    padding: 0 10px;
    margin: 0 4px;
    background-color: #475f94;
    color: #f3f4f5;
}

#mpd.disconnected {
    background-color: transparent;
    color: transparent;
}

#mpd.stopped {
    background-color: transparent;
    color: transparent;
}

#mpd.paused {
    background-color: #51a37a;
}

is there another way to do this? Apologies for the somewhat silly question, but it felt like a bit of a hack doing this, so I'm unsure if this is the correct method. I couldn't find any info in the waybar-mpd (5) that instructs me how to achieve this. (I thought this would be a fairly standard way of how people want to set this up but maybe it's just me ;))

Thanks for any pointers.

my version is:
Waybar v0.9.2-140-g759602a (branch 'master')

thanks,
~DA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions