wiki:MpdStatus
Last modified 5 years ago Last modified on 02/11/08 02:02:50

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