Version 3 (modified by simon, 19 years ago) (diff) |
---|
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, 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/mpd-status.py
Installation and Usage
(Instructions are based around the setup for wmii 2 in Debian, please add generic instructions where they differ)
- Place mpd-status.py somewhere, like /usr/local/bin/ or ~/.wmii/scripts/.
- Copy /etc/wmii/status.sh to ~/.wmii/status.sh and edit it, or edit /etc/wmii/status.sh directly.
- Edit the following line to include "`python2.4 /path/to/mpc.py`" (see patch attached to this page for an example):
text="`date` `uptime | sed -e 's/.*://' -e 's/,//g'`"
- 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 version 2 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 (2)
-
wmii-mpd-status.patch
(497 bytes) -
added by simon 19 years ago.
Example patch to wmii status.sh
-
mpd-status.png
(33.7 KB) -
added by simon 19 years ago.
Screenshot showing status bar while playing
Download all attachments as: .zip