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.
Bottom right, left panel is ncmpcpp and right is the albumart.
-
kunst GitHub - sdushantha/kunst: 🖼️ Download and display album art or display embedded album art
-
intotify-tools for inotify-wait
-
ueberzug GitHub - seebye/ueberzug: ueberzug is an alternative for w3mimgdisplay
-
mpd+ncmpcpp, its a script specifically for this.
-
Clone the repo
git clone pewpewlink
-
Copy the image.sh to
~/.ncmpcpp
, if you want to modify this you will have to make changes inside thetmux_sessions
file -
Move
tmux_session
to~/.ncmpcpp
, now you should have three files, image.sh, your ncmpcpp config and tmux_session in there. -
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. -
Hopefully, the image.sh is chmoded, if not just
chmod +x image.sh
-
Launch mpd, by running
mpd -v
-
Adjust the terminal (do it before launching music, currently images don't scale well and they are not very happy with tmux)
-
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.
-
Close the sxiv window that pops up when you launch kunst. And enjoy the albumart
-
Look into scripts and see if any of the messages are actually being displayed
-
Sometimes it just doesn't works, so take a cup of coffee and hope it does.
-
Check /tmp thats where most of the things are, if it still does not works launch kunst manually and see what happens
-
Image is going out of boundary:
- Resize tmux panes
- Remove the Paddings (check image.sh)
- reduce the image size (--size parameter inside script)
-
Aesthetically pleasing, infact very good looking.
-
w3mimgdisplay doesnt works :(
-
Existing solutions used existing covers, but didnt try to download from internet so kunst is a better alternative.
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.
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!
@ricingonlinux on Telegram https://t.me/RicingOnLinux