From 352a33c76a2833d353c707d95d7561f93a03cb8a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 18 Jun 2017 16:18:17 +1200 Subject: Refactor mpd/ncmpcpp stuff completely This has been neglected. Switch to per-user mpd process instantiated on login via .profile.d. Cut back ncmpcpp config until I have time to write one that's compatible with 0.8. --- mpd/mpdconf | 15 +++++++++++++++ mpd/profile.d/mpd.sh | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 mpd/mpdconf create mode 100644 mpd/profile.d/mpd.sh (limited to 'mpd') diff --git a/mpd/mpdconf b/mpd/mpdconf new file mode 100644 index 00000000..3dca8b6d --- /dev/null +++ b/mpd/mpdconf @@ -0,0 +1,15 @@ +bind_to_address "~/.mpd/socket" + +db_file "~/.mpd/database" +log_file "~/.mpd/log" + +music_directory "/mnt/media/shares/music" +playlist_directory "~/.mpd/playlists" +pid_file "~/.mpd/pid" +state_file "~/.mpd/state" +sticker_file "~/.mpd/sticker.sql" + +audio_output { + type "pulse" + name "PulseAudio" +} diff --git a/mpd/profile.d/mpd.sh b/mpd/profile.d/mpd.sh new file mode 100644 index 00000000..e8ab36c6 --- /dev/null +++ b/mpd/profile.d/mpd.sh @@ -0,0 +1,2 @@ +# Start an mpd process if one isn't already running +[ -s "$HOME"/.mpd/pid ] || mpd -- cgit v1.2.3