MPD Status MPD Status is a quick Python script to display some details about the track currently playing in [1]MPD. It is intended for use in [2]wmii's status bar. If you want a more featureful status bar, check out [3]szs3rd, from which I shamelessly copied and hacked the mpc.py module. Features * Displays currently playing/paused song (that's a given really) with time. * If metadata isn't provided, falls back to the basename of the file. Requirements * [4]Python 2.4. * [5]mpc. Download Checkout mpd-status/trunk/ from the [6]Subversion repository: svn co http://svn.bleah.co.uk/repos/misc/mpd-status/trunk or, since it is just the one file, grab it via HTTP from: [7]http://svn.bleah.co.uk/repos/misc/mpd-status/trunk/mpd-status.py Installation and Usage (Instructions are based around the setup for wmii 2 in [8]Debian) 1. Place mpd-status.py somewhere, like /usr/local/bin/ or ~/.wmii/scripts/ 2. Copy /etc/wmii/status.sh to ~/.wmii/status.sh and edit it, or edit /etc/wmii/status.sh directly. 3. Edit the following line to include "`python2.4 /path/to/mpc.py`" (see patch below for an example): text="`date` `uptime | sed -e 's/.*://' -e 's/,//g'`" 4. Restart wmii: /etc/wmii/rc restart You should see some extra text on your wmibar, either "--Not playing--" or your currently playing/paused track. License mpd-status is free software; you can redistribute it and/or modify it under the terms of the [9]GNU General Public License as published by the [10]Free Software Foundation; either version 2 of the License, or (at your option) any later version. mpd-status is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the [11]GNU General Public License for more details. Extras * [12]wmii-mpd-status.patch (497 bytes) - Example patch to wmii status.sh, added by simon on Mon Nov 7 13:57:32 2005. * [13]mpd-status.png (33 kB) - Screenshot showing status bar while playing, added by simon on Mon Nov 7 14:11:25 2005. References 1. http://www.musicpd.org/ 2. http://wmii.de 3. http://wmii.de/index.php/Contrib/Szs3rd 4. http://www.python.org/ 5. http://www.musicpd.org/mpc.shtml 6. http://subversion.tigris.org/ 7. http://svn.bleah.co.uk/repos/misc/mpd-status/trunk/mpd-status.py 8. http://www.debian.org/ 9. http://www.fsf.org/licensing/licenses/gpl.html 10. http://www.fsf.org/ 11. http://www.fsf.org/licensing/licenses/gpl.html 12. http://projects.bleah.co.uk/misc/attachment/wiki/MpdStatus/wmii-mpd-status.patch 13. http://projects.bleah.co.uk/misc/attachment/wiki/MpdStatus/mpd-status.png