mpd-status

Utility to show mpd status in tmux
git clone https://www.brianlane.com/git/mpd-status
Log | Files | Refs | README | LICENSE

README.md (1041B)


      1 Simple mpd status display
      2 
      3 * MPD protocol - https://www.musicpd.org/doc/html/protocol.html
      4 * mpd package docs - https://godoc.org/github.com/fhs/gompd/mpd
      5 
      6 Add this to the tmux status line with:
      7 
      8     set -g status-right "#[fg=green]#(~/bin/mpd-status)#[fg=default] | [#H] %H:%M %e-%b-%g"
      9 
     10 Example fields:
     11 
     12     STATUS- map[audio:44100:24:2 bitrate:320 consume:0 duration:223.791 elapsed:160.651 mixrampdb:0.000000 nextsong:5 nextsongid:6 playlist:2 playlistlength:19 random:1 repeat:0 single:0 song:0 songid:1 state:pause time:161:224 volume:75]
     13 
     14     SONG- map[Album:Joe Bonamassa Live From the Royal Albert Hall AlbumArtist:Joe Bonamassa Artist:Joe Bonamassa Date:2009 Disc:1 Genre:Blues Id:1 Last-Modified:2017-10-09T18:21:04Z Pos:0 Time:224 Title:Django (Live) Track:1 duration:223.791 file:Joe Bonamassa/Live From The Royal Albert Hall/01 - Django (Live).mp3]
     15 
     16 Arguments:
     17 
     18 * `--volume` shows the volume 0-100%
     19 * `--elapsed` shows the duration and elapsed time like `2m40s/3m43s`
     20 * `--width` sets the total width available, defaults to 40