mpdlrc
https://github.com/eNV25/mpdlrc/
Install
Installation requires a go compiler and the go
tool.
Install to ${GOPATH:-$HOME/go}/bin
using the go
tool.
$ go install github.com/env25/mpdlrc@latest
or use master branch
$ go install github.com/env25/mpdlrc@master
NOTE: You may need to add ${GOPATH:-$HOME/go}/bin
to $PATH
.
You must set up MPD first. If you use MPD_HOST
(and MPD_PORT
) for
the mpc command-line client see man:mpc(1),
mpdlrc will pick those up. If you use a unix socket to connect to mpd
no further configuration is required. Otherwise, since mpd doesn't allow
clients to query the information, you need to at least configure
the MusicDir
option.
Configuration is done using a TOML config file. The config file should be
located in ${XDG_CONFIG_HOME:-$HOME/.config}/mpdlrc/config.toml
. More
exhaustive documentation for the config file can be found in
docs/config-docs.toml.
Example file, after setting MPD_HOST=${XDG_RUNTIME_DIR}/mpd/socket
:
MusicDir = "$HOME/Music"
Run
$ mpdlrc