Code Monkey home page Code Monkey logo

albumartforncmpcpp's Introduction

Album Art for mpd+ncmpcpp

First of all, its not official. Second of all its very very buggy, and very hacky. But hey! it works. Before we start on how and why, its important to see what it looks like.

Screenshot

Bottom right, left panel is ncmpcpp and right is the albumart.

Dependencies

  1. kunst GitHub - sdushantha/kunst: 🖼️ Download and display album art or display embedded album art

  2. intotify-tools for inotify-wait

  3. ueberzug GitHub - seebye/ueberzug: ueberzug is an alternative for w3mimgdisplay

  4. mpd+ncmpcpp, its a script specifically for this.

Installation

  1. Clone the repo git clone pewpewlink

  2. Copy the image.sh to ~/.ncmpcpp , if you want to modify this you will have to make changes inside the tmux_sessions file

  3. Move tmux_session to ~/.ncmpcpp, now you should have three files, image.sh, your ncmpcpp config and tmux_session in there.

  4. Create an alias to launch stuffs, alias music='tmux new-session "tmux source-file ~/.ncmpcpp/tmux_session"' this is basically for ease of launching and also to create the very specific style.

  5. Hopefully, the image.sh is chmoded, if not just chmod +x image.sh

Usage

  1. Launch mpd, by running mpd -v

  2. Adjust the terminal (do it before launching music, currently images don't scale well and they are not very happy with tmux)

  3. Launch music, it should create panels, and launch the image.sh file. Hopefully something is playing in your mpd, if not give it a try.

  4. Close the sxiv window that pops up when you launch kunst. And enjoy the albumart

Debugging

  1. Look into scripts and see if any of the messages are actually being displayed

  2. Sometimes it just doesn't works, so take a cup of coffee and hope it does.

  3. Check /tmp thats where most of the things are, if it still does not works launch kunst manually and see what happens

  4. Image is going out of boundary:

    • Resize tmux panes
    • Remove the Paddings (check image.sh)
    • reduce the image size (--size parameter inside script)

Why?

  1. Aesthetically pleasing, infact very good looking.

  2. w3mimgdisplay doesnt works :(

  3. Existing solutions used existing covers, but didnt try to download from internet so kunst is a better alternative.

Contributing

Look into the code and work on it, if you find something buggy and suggest a WORKING CODE it will be great, if you want a new feature just create a pull request. Hopefully it will be implemented.

Credits

My code is mostly the copy pasta from .ncmpcpp · master · sourplum / dotfiles · GitLab Look into his version and if his works go for it. Kudos to this guy btw!

Social

@ricingonlinux on Telegram https://t.me/RicingOnLinux

albumartforncmpcpp's People

Contributors

aeres-u99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.