From a48b455bf173b5abd0fd9f37c47290c3e758dccb Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 7 Oct 2017 17:33:41 +0200 Subject: [PATCH] Use socket for mpd + add mpc shim --- shell/+mpd/.config/mpd/mpd-linux.conf | 1 + shell/+mpd/.ncmpcpp/config | 2 +- shell/+mpd/bin/mpc | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 shell/+mpd/bin/mpc diff --git a/shell/+mpd/.config/mpd/mpd-linux.conf b/shell/+mpd/.config/mpd/mpd-linux.conf index d7f6f727..90f01be7 100644 --- a/shell/+mpd/.config/mpd/mpd-linux.conf +++ b/shell/+mpd/.config/mpd/mpd-linux.conf @@ -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" diff --git a/shell/+mpd/.ncmpcpp/config b/shell/+mpd/.ncmpcpp/config index a5b48c30..6629db2c 100644 --- a/shell/+mpd/.ncmpcpp/config +++ b/shell/+mpd/.ncmpcpp/config @@ -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 diff --git a/shell/+mpd/bin/mpc b/shell/+mpd/bin/mpc new file mode 100755 index 00000000..aa7a2535 --- /dev/null +++ b/shell/+mpd/bin/mpc @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +/usr/bin/mpc -h ~/.config/mpd/mpd.sock $@