Use socket for mpd + add mpc shim

This commit is contained in:
Henrik Lissner 2017-10-07 17:33:41 +02:00
parent 1f36083340
commit a48b455bf1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 5 additions and 1 deletions

View file

@ -5,6 +5,7 @@ db_file "~/music/.db/db"
log_file "~/.config/mpd/mpd.log"
pid_file "~/.config/mpd/mpd.pid"
state_file "~/.config/mpd/mpdstate"
bind_to_address "~/.config/mpd/mpd.sock"
gapless_mp3_playback "yes"
restore_paused "yes"

View file

@ -5,7 +5,7 @@ ncmpcpp_directory = ~/.ncmpcpp
lyrics_directory = ~/music/.db/lyrics
##### connection settings #####
#mpd_host = "~/.config/mpd/mpd.sock"
mpd_host = "~/.config/mpd/mpd.sock"
#mpd_host = "127.0.0.1"
#mpd_port = 6600
#mpd_connection_timeout = 5

3
shell/+mpd/bin/mpc Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
/usr/bin/mpc -h ~/.config/mpd/mpd.sock $@