Refactor MPD setup
This commit is contained in:
parent
d320ba7ee1
commit
abcd234b3d
10 changed files with 149 additions and 23 deletions
33
templates/mpd/mpd.conf.j2
Normal file
33
templates/mpd/mpd.conf.j2
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
bind_to_address "{{ mpd_listen_address }}"
|
||||
port "{{ mpd_listen_port }}"
|
||||
|
||||
playlist_directory "{{ mpd_configuration_dir }}/playlists"
|
||||
|
||||
database {
|
||||
plugin "proxy"
|
||||
host "{{ mpd_remote_address }}"
|
||||
port "{{ mpd_remote_port }}"
|
||||
}
|
||||
|
||||
audio_output {
|
||||
type "pulse"
|
||||
name "mpd"
|
||||
replay_gain_handler "software"
|
||||
mixer_type "hardware"
|
||||
format "96000:24:1"
|
||||
}
|
||||
|
||||
input {
|
||||
enabled "no"
|
||||
plugin "tidal"
|
||||
}
|
||||
|
||||
input {
|
||||
enabled "no"
|
||||
plugin "qobuz"
|
||||
}
|
||||
|
||||
decoder {
|
||||
enabled "no"
|
||||
plugin "wildmidi"
|
||||
}
|
||||
30
templates/mpd/ncmpc.j2
Normal file
30
templates/mpd/ncmpc.j2
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
##
|
||||
## Configuration file for ncmpc (~/.config/ncmpc/config)
|
||||
##
|
||||
|
||||
############## Connection ###################
|
||||
## Connect to mpd running on a specified host
|
||||
host = {{ mpd_remote_address }}
|
||||
|
||||
## Connect to mpd on the specified port.
|
||||
port = {{ mpd_remote_port }}
|
||||
|
||||
############## Theme ###################
|
||||
# Topbar
|
||||
color title = 0/254
|
||||
color line = 0/254
|
||||
|
||||
# Main window
|
||||
color background = 15
|
||||
color list = 239/15
|
||||
color browser-directory = 239/15
|
||||
color browser-playlist = 239/15
|
||||
|
||||
# Selected
|
||||
color list-bold = 147/255
|
||||
|
||||
# Bottombar
|
||||
color progressbar = 0
|
||||
color status-state = 0/255
|
||||
color status-song = 0/255
|
||||
color status-time = 0/255
|
||||
10
templates/mpd/service.j2
Normal file
10
templates/mpd/service.j2
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Music Player Daemon
|
||||
Documentation=man:mpd(1) man:mpd.conf(5)
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
ExecStart=/usr/bin/mpd --systemd
|
||||
Restart=on-failure
|
||||
RestartSec=15s
|
||||
TimeoutStopSec=3
|
||||
9
templates/mpd/socket.j2
Normal file
9
templates/mpd/socket.j2
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[Socket]
|
||||
ListenStream=/run/user/1000/mpd.socket
|
||||
ListenStream={{ mpd_listen_port }}
|
||||
Backlog=5
|
||||
KeepAlive=true
|
||||
PassCredentials=true
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue