diff options
| author | Loek Le Blansch <loek@pipeframe.xyz> | 2026-08-15 20:03:56 +0200 |
|---|---|---|
| committer | Loek Le Blansch <loek@pipeframe.xyz> | 2026-08-15 20:03:56 +0200 |
| commit | 3ad7060811cf107c733a3b27c34f5e0cf89da3e7 (patch) | |
| tree | 7cf77a663f8b777cba2ade8a6c9317d662885eee /home/dot_config/mpd | |
| parent | e9fe939769b9f5ea0234c5b07e53b89e5e4e8fd2 (diff) | |
more mac updates
Diffstat (limited to 'home/dot_config/mpd')
| -rw-r--r-- | home/dot_config/mpd/mpd.conf.tmpl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/home/dot_config/mpd/mpd.conf.tmpl b/home/dot_config/mpd/mpd.conf.tmpl index affaec1..1d17db6 100644 --- a/home/dot_config/mpd/mpd.conf.tmpl +++ b/home/dot_config/mpd/mpd.conf.tmpl @@ -35,10 +35,20 @@ database { } {{- end }} +{{- $default_output_type := "" }} +{{- if eq .chezmoi.os "darwin" }} +{{- $default_output_type = "osx" }} +{{- else if eq .chezmoi.os "linux" }} +{{- $default_output_type = "pulse" }} +{{- end }} +{{- with $default_output_type }} + audio_output { - type "pulse" + type "{{ $default_output_type }}" name "desktop output" + mixer_type "software" } +{{- end }} input_cache { size "512 MB" |