Changes between Version 3 and Version 4 of MpdStatus
- Timestamp:
- Mar 11, 2006, 10:32:28 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MpdStatus
v3 v4 3 3 MPD Status is a quick Python script to display some details about the track currently playing in [http://www.musicpd.org/ MPD]. It is intended for use in [http://wmii.de wmii]'s status bar. 4 4 5 If you want a more featureful status bar , check out [http://wmii.de/index.php/Contrib/Szs3rd szs3rd], from which I shamelessly copied and hacked the {{{mpc.py}}}module.5 If you want a more featureful status bar for wmii, check out [http://wmii.de/index.php/Contrib/Szs3rd szs3rd], from which I shamelessly copied and hacked the `mpc.py` module. 6 6 7 7 == Features == … … 20 20 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 21 21 22 == Installation and Usage == 23 (Instructions are based around the setup for wmii 2 in [http://www.debian.org/ Debian], please add generic instructions where they differ) 24 1. Place {{{mpd-status.py}}} somewhere, like {{{/usr/local/bin/}}} or {{{~/.wmii/scripts/}}}. 25 1. Copy {{{/etc/wmii/status.sh}}} to {{{~/.wmii/status.sh}}} and edit it, or edit {{{/etc/wmii/status.sh}}} directly. 26 1. Edit the following line to include "{{{`python2.4 /path/to/mpc.py`}}}" (see patch attached to this page for an example): 22 == Usage == 23 24 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`): 27 25 {{{ 28 text="`date` `uptime | sed -e 's/.*://' -e 's/,//g'`" 26 #!sh 27 while true 28 do 29 mpd-status.py 30 sleep 1 31 done 29 32 }}} 30 1. Restart wmii: {{{/etc/wmii/rc restart}}} 31 32 You should see some extra text on your wmibar, either "--Not playing--" or your currently playing/paused track. 33 Some example 'status' rc scripts for wmii 2.5 are contained in the examples directory. 33 34 34 35 == License == 35 {{{mpd-status}}}is free software; you can redistribute it and/or modify it under the terms of version 2 of the [http://www.fsf.org/licensing/licenses/gpl.html GNU General Public License] as published by the [http://www.fsf.org/ Free Software Foundation].36 `mpd-status` is free software; you can redistribute it and/or modify it under the terms of version 2 of the [http://www.fsf.org/licensing/licenses/gpl.html GNU General Public License] as published by the [http://www.fsf.org/ Free Software Foundation]. 36 37 37 {{{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 [http://www.fsf.org/licensing/licenses/gpl.html GNU General Public License] for more details.38 `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 [http://www.fsf.org/licensing/licenses/gpl.html GNU General Public License] for more details.