A fun little bash project. Pictured album: Arps by Chad Crouch. Music, Licence: Attribution-NonCommercial 3.0 Unported (CC BY-NC 3.0)
Note: in line with Überzug which this project uses as a library, this is licensed under GPLv3.
I was inspired by this Reddit thread but I quickly realised I could have something more robust if I used überzug instead of w3m.
I like to tinker with mpd
and this complements my favourite client, ncmpcpp
. It works well enough on tmux
splits to make this a viable way of displaying album artwork as part of a broader effort to make a foobar2000-like player in the terminal.
I particularly credit these two redditors for inspiring this project:
- u/Dylan112 — also on GitHub: dylan, commit
- u/drunkangel in this comment — who suggested path-finding logic I still use in a modified form
- kunst — I figured out my approach to extracting images with help from the source
- Obtain the script
- Make sure that you have
ueberzug
installed - Make sure the script is executable
- Play some music in
mpd
- Execute the script
- Alacritty
- Xfce4-terminal
- Xfce4-terminal with
tmux
mpd
— the music playermpc
— a utility for communicating withmpd
and checking its stateueberzug
— a library for viewing images in the terminalbash
— the shell for this project, mandated byueberzug
ffmpeg
— used for extracting images from music files, probably present as a dependencympd
- Add screenshots to the repo
- Code clean-up
- Remove hard-coded paths