Coder Social home page Coder Social logo

plexbar's Introduction

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;
}

plexbar's People

Contributors

tonyskapunk avatar

Stargazers

Jose R. Gonzalez avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.