tonyskapunk / plexbar

A PlexAmp plugin for waybar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

plexbar

A PlexAmp plugin for waybar

Demo

plexbar.mp4

Example

Place the plexbar script under ~/.config/waybar/custom/plexbar/plexbar

And here an example on how to configure in waybar

~/.config/waybar/config

    "modules-right": [
        "custom/plexbar",
        ...
...
      "custom/plexbar": {
        "format": "{} ♪",
        "max-length": 60,
        "interval": 30,
        "return-type": "json",
        "exec": "~/.config/waybar/custom/plexbar/plexbar",
        "signal": 5,
        "smooth-scrolling-threshold": 1.0,
        "exec-if": "pgrep plexamp"
    },  

~/.config/waybar/style.css

@define-color comment #6272a4;
@define-color current #44475a;
@define-color light #f8f8f2;
@define-color warning #282A36;

#custom-plexbar,
#custom-plexbar-play-pause,
#custom-plexbar-prev,
#custom-plexbar-next,
#custom-plexbar-quit {
    color: @light;
    padding: 0px 6px 0px 6px;
    font-size: 14px;
    font-style: italic;
}

#custom-plexbar {
    margin: 0px 8px 0px 1px;
}

#custom-plexbar.playing {
    color: @comment;
}

#custom-plexbar.paused {
    color: @current;
}

#custom-plexbar.stopped {
    color: @warning;
}

#custom-plexbar-prev {
    margin: 0px 0px 0px 1px;
}

#custom-plexbar-play-pause {
    margin: 0px 0px 0px 1px;
}

#custom-plexbar-next {
    margin: 0px 0px 0px 1px;
}

#custom-plexbar-quit {
    margin: 0px 0px 0px 1px;
}

About

A PlexAmp plugin for waybar

License:Apache License 2.0


Languages

Language:Shell 100.0%