@statusbar/mpd
v0.1.0
Published
mpd "now playing" block for Statusbar.
Downloads
1
Readme
@statusbar/mpd
An mpd "Now Playing" block for statusbar.
Usage
const mpd = require('@statusbar/mpd')
bar.use(nowplaying({
format: '{artist} - {title}',
// connection defaults:
port: 6600,
host: 'localhost',
// but you can also use a domain socket:
path: '/var/run/mpd.sock'
}))
Format
The format
option takes a simple formatting string.
Supported tags:
{artist}
- The artist name. (theArtist
meta field){album}
- The album that this song is on.{title}
- The song title.{track}
- Track number of this song in the album.{albumartist}
- The Album Artist meta field.