aboutsummaryrefslogtreecommitdiff
path: root/mpd
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-06-18 16:18:17 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-06-18 16:18:17 +1200
commit352a33c76a2833d353c707d95d7561f93a03cb8a (patch)
treeca07e19aa14b9f87a0b6c723f1763cecac52e074 /mpd
parentAllow setting a prompt mode for the shell (diff)
downloaddotfiles-352a33c76a2833d353c707d95d7561f93a03cb8a.tar.gz
dotfiles-352a33c76a2833d353c707d95d7561f93a03cb8a.zip
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.
Diffstat (limited to 'mpd')
-rw-r--r--mpd/mpdconf15
-rw-r--r--mpd/profile.d/mpd.sh2
2 files changed, 17 insertions, 0 deletions
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