Today we'll cover how to use the dbus interprocess communication (IPC) mechanism to integrate the Clementine music player into i3status. We'll write a small script in Python that determines Clementine's state using the dbus library, and then appends that state to the i3status bar. This tutorial is really a corollary to the Linux Environment Setup 0x05: Integrating mpd into i3status using i3bar post we wrote a few months back, and will make use of some of the same code. Save swapping mpd for Clementine, the final result will be nearly identical:
In this fifth installment of our ongoing Linux tutorial series, we're going to customize our i3 experience by modifying i3bar's output! We're going to integrate our MPD music backend (the setup of which we covered here), into i3bar. We'll make use of some freely available code, and write a little python of our own.