Changeset 25 for mpd-status


Ignore:
Timestamp:
Mar 11, 2006, 10:12:41 PM (18 years ago)
Author:
simon
Message:

Update README with more general instructions. Add wmii status rc script examples.

Location:
mpd-status/trunk
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • mpd-status/trunk/README

    r19 r25  
    55   [2]wmii's status bar.
    66
    7    If you want a more featureful status bar, check out [3]szs3rd, from
    8    which I shamelessly copied and hacked the mpc.py module.
     7   If you want a more featureful status bar for wmii, check out
     8   [3]szs3rd, from which I shamelessly copied and hacked the mpc.py
     9   module.
    910
    1011Features
     
    3031 [7]http://svn.bleah.co.uk/repos/misc/mpd-status/trunk/mpd-status.py
    3132
    32 Installation and Usage
     33Usage
    3334
    34    (Instructions are based around the setup for wmii 2 in [8]Debian)
     35   When run, the script simply outputs current track information (or
     36   '--Not playing--') to standard output.  To have this update
     37   continuously, run it repeatedly inside a loop construct, for
     38   example (using sh):
    3539
    36     1. Place mpd-status.py somewhere, like /usr/local/bin/ or
    37        ~/.wmii/scripts/
    38     2. Copy /etc/wmii/status.sh to ~/.wmii/status.sh and edit it, or
    39        edit /etc/wmii/status.sh directly.
    40     3. Edit the following line to include "`python2.4
    41        /path/to/mpc.py`" (see patch below for an example):
     40 while true
     41 do
     42     mpd-status.py
     43     sleep 1
     44 done
    4245
    43  text="`date` `uptime | sed -e 's/.*://' -e 's/,//g'`"
    44 
    45     4. Restart wmii: /etc/wmii/rc restart
    46 
    47    You should see some extra text on your wmibar, either "--Not
    48    playing--" or your currently playing/paused track.
     46   Some example 'status' rc scripts for wmii 2.5 are contained in the
     47   examples directory.
    4948
    5049License
     
    7675  6. http://subversion.tigris.org/
    7776  7. http://svn.bleah.co.uk/repos/misc/mpd-status/trunk/mpd-status.py
    78   8. http://www.debian.org/
    79   9. http://www.fsf.org/licensing/licenses/gpl.html
    80   10. http://www.fsf.org/
    81   11. http://www.fsf.org/licensing/licenses/gpl.html
    82   12. http://projects.bleah.co.uk/misc/attachment/wiki/MpdStatus/wmii-mpd-status.patch
    83   13. http://projects.bleah.co.uk/misc/attachment/wiki/MpdStatus/mpd-status.png
     77  8. http://www.fsf.org/licensing/licenses/gpl.html
     78  9. http://www.fsf.org/
     79  10. http://www.fsf.org/licensing/licenses/gpl.html
     80  11. http://projects.bleah.co.uk/misc/attachment/wiki/MpdStatus/wmii-mpd-status.patch
     81  12. http://projects.bleah.co.uk/misc/attachment/wiki/MpdStatus/mpd-status.png
    8482
Note: See TracChangeset for help on using the changeset viewer.