MPD Status
MPD Status is a quick Python script to display some details about the track currently playing in MPD. It is intended for use in wmii's status bar.
If you want a more featureful status bar for wmii, check out 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
Download
Checkout mpd-status/trunk/ from the 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 http://svn.bleah.co.uk/repos/misc/mpd-status/trunk/mpdstatus.py
Usage
When run, the script simply outputs current track information (or volume info) to standard output. To have this update continuously, run it repeatedly inside a loop construct, for example (using sh):
while true do mpdstatus.py sleep 1 done
Some example 'status' rc scripts for wmii 2.5 are contained in the examples directory.
Licence
mpd-status is free software; you can redistribute it and/or modify it under the terms of either version 2 or version 3 of the GNU General Public License as published by the Free Software Foundation.
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 GNU General Public License for more details.
Attachments
- wmii-mpd-status.patch (497 bytes) -
Example patch to wmii status.sh
, added by simon on 07/11/05 13:57:32. - mpd-status.png (33.7 kB) -
Screenshot showing status bar while playing
, added by simon on 07/11/05 14:11:25.
