From 12a3c205f217e34c05c25fd6a4a24b2163bf59e0 Mon Sep 17 00:00:00 2001 From: Luke Tidd Date: Mon, 14 Apr 2025 17:45:13 -0400 Subject: [PATCH] init checkin --- mpd.conf | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ push | 11 +++++++++ 2 files changed, 79 insertions(+) create mode 100644 mpd.conf create mode 100755 push diff --git a/mpd.conf b/mpd.conf new file mode 100644 index 0000000..4cc159a --- /dev/null +++ b/mpd.conf @@ -0,0 +1,68 @@ +music_directory "/data/music/flac" +playlist_directory "/data/music/playlists" +db_file "/data/mpd/mpd.db" +log_file "/data/mpd/mpd.log" +state_file "/data/mpd/state" +sticker_file "/data/mpd/sticker.sql" +bind_to_address "2603:3001:bd9:f1:1337:f1ac:d00d:ad10" +port "6600" +# log_level "verbose" +metadata_to_use "artist,album,title,track,name,date,disc" +auto_update_depth "3" +follow_outside_symlinks "yes" +follow_inside_symlinks "yes" +zeroconf_enabled "no" +default_permissions "read,add,control,admin" +input { + plugin "curl" + enabled "no" +} +input { + plugin "qobuz" + enabled "no" +} +decoder { + plugin "wildmidi" + enabled "no" +} +decoder { + plugin "hybrid_dsd" + enabled "no" +} +audio_output { + type "alsa" + name "dont need alsa" + enabled "no" +} +# audio_output { +# type "shout" +# encoder "vorbis" +# name "My Shout Stream" +# tags "yes" +# host "2603:3001:bd9:f1:1337:f1ac:d00d:ad10" +# port "8443" +# mount "/stream.ogg" +# password "2N9WNqbjyn7Fb8u3EL5VHZ3K9" +# quality "5.0" +# format "44100:16:2" +# public "no" +# always_on "yes" +# } +audio_output { + type "fifo" + name "pipestown" + path "/tmp/snapfifo" + format "48000:16:2" + mixer_type "software" +} +audio_output { + type "fifo" + name "viz" + path "/tmp/vizpipe" + format "48000:16:1" +} +audio_output { + type "null" + name "My Null Output" + mixer_type "none" +} diff --git a/push b/push new file mode 100755 index 0000000..3eeaa66 --- /dev/null +++ b/push @@ -0,0 +1,11 @@ +#!/bin/bash + +declare -A file_dest +file_dest['mpd.conf']='/etc/mpd.conf' + +for file in "${file_dest[@]}"; do + dest="${file_dest["$file"]}" + diff -y "$file" "$dest" + sudo cp "$file" "$dest" + sudo chown root:root "$dest" +done