diff options
| author | Loek Le Blansch <loek@pipeframe.xyz> | 2026-08-22 21:03:41 +0200 |
|---|---|---|
| committer | Loek Le Blansch <loek@pipeframe.xyz> | 2026-08-22 21:03:41 +0200 |
| commit | 21f32ce419993818444736f9e6780278acee375e (patch) | |
| tree | f0282fa9f44670496871d87876a68fbeea149bf9 /home/dot_config/mpd | |
| parent | a304f8bf4751dc2f081d358dbae8d20a3ab9442c (diff) | |
more tweaks
Diffstat (limited to 'home/dot_config/mpd')
| -rw-r--r-- | home/dot_config/mpd/mpd.conf.tmpl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/home/dot_config/mpd/mpd.conf.tmpl b/home/dot_config/mpd/mpd.conf.tmpl index 1d17db6..bf0cf3d 100644 --- a/home/dot_config/mpd/mpd.conf.tmpl +++ b/home/dot_config/mpd/mpd.conf.tmpl @@ -5,9 +5,17 @@ {{- if $host -}} {{- $music_directory = printf "%s/music" $base_dir -}} {{- end -}} +{{- with (dig "mpd" "music_dir" nil .) -}} +{{- $music_directory = . -}} +{{- end -}} + +{{- $playlist_directory := "{{ $base_dir }}/playlists" }} +{{- with (dig "mpd" "playlist_dir" nil .) -}} +{{- $playlist_directory = . -}} +{{- end -}} music_directory "{{ $music_directory }}" -playlist_directory "{{ $base_dir }}/playlists" +playlist_directory "{{ $playlist_directory }}" pid_file "{{ $base_dir }}/mpd.pid" state_file "{{ $base_dir }}/mpdstate" |