Music player integration with conky

I am a Linux distro junkie, but I do have some things I like to share across them. Conky is one.

I don't need a really busy conky showing what all the various system components are up to. There are only a few that I really need -- disk space, memory used, CPU usage overall, and most importantly for my laptop, the overall system temperature (my sorry old laptop is prone to overheating).

I do like having the current local weather info shown (a forecast would be too busy).

Then there is info on what's playing in my favorite music player, Audacious. The conky has a section that only appears if Audacious is running. I've got code in there to show the audio volume, the artist name and song title and album cover of library tunes. The coolest thing is when playing an online radio station, it will show the station name (the "artist" in a streamed source) and the artist and song title (the "title" of the stream metadata). I'm using a script that parses the station name from the "artist" and by default will show a station logo where an album cover would be if it was a file, and parses and processes the actual artist and title from the "title" metadata and if there's an album cover or photo already downloaded into a covers directory, shows that instead of the station logo. If the cover doesn't exists, it tries to download one via sacad. Sometimes it works, sometimes not, but it will display something. The covers directory is getting pretty well populated!

And drum roll -- here's what the conky looks like! (Showing the SomaFM station logo.)

I will also note that I use virtually the same code on all distros to parse the output of the inxi command to get the distro name and the "desktop" (or window manager) name. Elive's a bit different in the inxi output, so what you see is what you get. On most of my other distros, I use Openbox, and it'll show "Openbox 3.6.1" or such for the "desktop" part. Here, it's "Enlightenment 1.0.31" technically, and the system is "Elive GNU/Linux" rather than what's in the /etc/os-release file's "PRETTY_NAME" ("Elive 3.8.52 PRO 64 bit"). Other distros might have the proper names exposed in lsb-release (which Elive doesn't have installed) or in the /etc/lsb-release or /etc/os-release files, but it's all over the place, so I settled on using inxi, which is pretty uniform except when it comes to Elive! It is what it is!

Anyway, the conky has been a fun journey. And whooops, just discovered that while the artist covers show up for online streams, I broke the ability to show library covers. Ugh! On to more debug sessions! :slight_smile: