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 for wmii, 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 Usage When run, the script simply outputs current track information (or '--Not playing--') to standard output. To have this update continuously, run it repeatedly inside a loop construct, for example (using sh): while true do mpd-status.py sleep 1 done Some example 'status' rc scripts for wmii 2.5 are contained in the examples directory. 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.fsf.org/licensing/licenses/gpl.html 9. http://www.fsf.org/ 10. http://www.fsf.org/licensing/licenses/gpl.html 11. http://projects.bleah.co.uk/misc/attachment/wiki/MpdStatus/wmii-mpd-status.patch 12. http://projects.bleah.co.uk/misc/attachment/wiki/MpdStatus/mpd-status.png