mirror of https://github.com/Chizi123/Dotfiles.git

Joel Grunbaum
2020-06-21 5eb355e5a062bb4e56a0a44073bfce38bf4dfc3f
commit | author | age
a67156 1 # An example configuration file for MPD.
J 2 # Read the user manual for documentation: http://www.musicpd.org/doc/user/
3
4
5 # Files and directories #######################################################
6 #
7 # This setting controls the top directory which MPD will search to discover the
8 # available audio files and add them to the daemon's online database. This 
9 # setting defaults to the XDG directory, otherwise the music directory will be
10 # be disabled and audio files will only be accepted over ipc socket (using
11 # file:// protocol) or streaming files over an accepted protocol.
12 #
13 music_directory        "~/Music"
14 #
15 # This setting sets the MPD internal playlist directory. The purpose of this
16 # directory is storage for playlists created by MPD. The server will use 
17 # playlist files not created by the server but only if they are in the MPD
18 # format. This setting defaults to playlist saving being disabled.
19 #
20 playlist_directory        "~/.config/mpd/playlists"
21 #
22 # This setting sets the location of the MPD database. This file is used to
23 # load the database at server start up and store the database while the 
24 # server is not up. This setting defaults to disabled which will allow
25 # MPD to accept files over ipc socket (using file:// protocol) or streaming
26 # files over an accepted protocol.
27 #
28 db_file            "~/.config/mpd/database"
29
30 # These settings are the locations for the daemon log files for the daemon.
31 # These logs are great for troubleshooting, depending on your log_level
32 # settings.
33 #
34 # The special value "syslog" makes MPD use the local syslog daemon. This
35 # setting defaults to logging to syslog.
36 #
37 log_file            "~/.config/mpd/log"
38 #log_file        "syslog"
39 #
40 # This setting sets the location of the file which stores the process ID
41 # for use of mpd --kill and some init scripts. This setting is disabled by
42 # default and the pid file will not be stored.
43 #
44 #pid_file            "~/.mpd/pid"
45 #
46 # This setting sets the location of the file which contains information about
47 # most variables to get MPD back into the same general shape it was in before
48 # it was brought down. This setting is disabled by default and the server 
49 # state will be reset on server start up.
50 #
51 #state_file            "~/.mpd/state"
52 #
53 # The location of the sticker database.  This is a database which
54 # manages dynamic information attached to songs.
55 #
56 #sticker_file            "~/.mpd/sticker.sql"
57 #
58 ###############################################################################
59
60
61 # General music daemon options ################################################
62 #
63 # This setting specifies the user that MPD will run as. MPD should never run as
64 # root and you may use this setting to make MPD change its user ID after
65 # initialization. This setting is disabled by default and MPD is run as the
66 # current user.
67 #
68 #user                "joel"
69 #
70 # This setting specifies the group that MPD will run as. If not specified
71 # primary group of user specified with "user" setting will be used (if set).
72 # This is useful if MPD needs to be a member of group such as "audio" to
73 # have permission to use sound card.
74 #
75 #group                "joel"
76 #
77 # This setting sets the address for the daemon to listen on. Careful attention
78 # should be paid if this is assigned to anything other then the default, any.
79 # This setting can deny access to control of the daemon. Not effective if
80 # systemd socket activiation is in use.
81 #
82 # For network
83 #bind_to_address        "any"
84 #
85 # And for Unix Socket
86 #bind_to_address        "~/.mpd/socket"
87 #
88 # This setting is the TCP port that is desired for the daemon to get assigned
89 # to.
90 #
91 port                "6600"
92 #
93 # This setting controls the type of information which is logged. Available 
94 # setting arguments are "default", "secure" or "verbose". The "verbose" setting
95 # argument is recommended for troubleshooting, though can quickly stretch
96 # available resources on limited hardware storage.
97 #
98 #log_level            "default"
99 #
100 # Setting "restore_paused" to "yes" puts MPD into pause mode instead
101 # of starting playback after startup.
102 #
103 #restore_paused "no"
104 #
105 # This setting enables MPD to create playlists in a format usable by other
106 # music players.
107 #
108 #save_absolute_paths_in_playlists    "no"
109 #
110 # This setting defines a list of tag types that will be extracted during the
111 # audio file discovery process. The complete list of possible values can be
112 # found in the user manual.
113 #metadata_to_use    "artist,album,title,track,name,genre,date,composer,performer,disc"
114 #
115 # This example just enables the "comment" tag without disabling all
116 # the other supported tags:
117 #metadata_to_use "+comment"
118 #
119 # This setting enables automatic update of MPD's database when files in 
120 # music_directory are changed.
121 #
122 #auto_update    "yes"
123 #
124 # Limit the depth of the directories being watched, 0 means only watch
125 # the music directory itself.  There is no limit by default.
126 #
127 #auto_update_depth "3"
128 #
129 ###############################################################################
130
131
132 # Symbolic link behavior ######################################################
133 #
134 # If this setting is set to "yes", MPD will discover audio files by following 
135 # symbolic links outside of the configured music_directory.
136 #
137 #follow_outside_symlinks    "yes"
138 #
139 # If this setting is set to "yes", MPD will discover audio files by following
140 # symbolic links inside of the configured music_directory.
141 #
142 #follow_inside_symlinks        "yes"
143 #
144 ###############################################################################
145
146
147 # Zeroconf / Avahi Service Discovery ##########################################
148 #
149 # If this setting is set to "yes", service information will be published with
150 # Zeroconf / Avahi.
151 #
152 zeroconf_enabled        "yes"
153 #
154 # The argument to this setting will be the Zeroconf / Avahi unique name for
155 # this MPD server on the network. %h will be replaced with the hostname.
156 #
157 zeroconf_name            "Music Player @ %h"
158 #
159 ###############################################################################
160
161
162 # Permissions #################################################################
163 #
164 # If this setting is set, MPD will require password authorization. The password
165 # setting can be specified multiple times for different password profiles.
166 #
167 #password                        "password@read,add,control,admin"
168 #
169 # This setting specifies the permissions a user has who has not yet logged in. 
170 #
171 #default_permissions             "read,add,control,admin"
172 #
173 ###############################################################################
174
175
176 # Database #######################################################################
177 #
178
179 #database {
180 #       plugin "proxy"
181 #       host "other.mpd.host"
182 #       port "6600"
183 #}
184
185 # Input #######################################################################
186 #
187
188 input {
189         plugin "curl"
190 #       proxy "proxy.isp.com:8080"
191 #       proxy_user "user"
192 #       proxy_password "password"
193 }
194
195 #
196 ###############################################################################
197
198 # Audio Output ################################################################
199 #
200 # MPD supports various audio output types, as well as playing through multiple 
201 # audio outputs at the same time, through multiple audio_output settings 
202 # blocks. Setting this block is optional, though the server will only attempt
203 # autodetection for one sound card.
204 #
205 # An example of an ALSA output:
206 #
207 #audio_output {
208 #    type        "alsa"
209 #    name        "My ALSA Device"
210 ##    device        "hw:0,0"    # optional
211 ##    mixer_type      "hardware"    # optional
212 ##    mixer_device    "default"    # optional
213 ##    mixer_control    "PCM"        # optional
214 ##    mixer_index    "0"        # optional
215 #}
216 #
217 #audio_output {
218 #    type        "alsa"
219 #    name         "ALSA sound card"
220 #}
221
222 audio_output {
223     type        "pulse"
224     name         "PulseAudio"
225 }
226
227 #
228 audio_output {
229     type                    "fifo"
230     name                    "my_fifo"
231     path                    "/tmp/mpd.fifo"
232     format                  "44100:16:2"
233 }
234 #
235 #
236 # An example of an OSS output:
237 #
238 #audio_output {
239 #    type        "oss"
240 #    name        "My OSS Device"
241 ##    device        "/dev/dsp"    # optional
242 ##    mixer_type      "hardware"    # optional
243 ##    mixer_device    "/dev/mixer"    # optional
244 ##    mixer_control    "PCM"        # optional
245 #}
246 #
247 # An example of a shout output (for streaming to Icecast):
248 #
249 #audio_output {
250 #    type        "shout"
251 #    encoder        "vorbis"        # optional
252 #    name        "My Shout Stream"
253 #    host        "localhost"
254 #    port        "8000"
255 #    mount        "/mpd.ogg"
256 #    password    "hackme"
257 #    quality        "5.0"
258 #    bitrate        "128"
259 #    format        "44100:16:1"
260 ##    protocol    "icecast2"        # optional
261 ##    user        "source"        # optional
262 ##    description    "My Stream Description"    # optional
263 ##    url        "http://example.com"    # optional
264 ##    genre        "jazz"            # optional
265 ##    public        "no"            # optional
266 ##    timeout        "2"            # optional
267 ##    mixer_type      "software"        # optional
268 #}
269 #
270 # An example of a recorder output:
271 #
272 #audio_output {
273 #    type        "recorder"
274 #    name        "My recorder"
275 #    encoder        "vorbis"        # optional, vorbis or lame
276 #    path        "/var/lib/mpd/recorder/mpd.ogg"
277 ##    quality        "5.0"            # do not define if bitrate is defined
278 #    bitrate        "128"            # do not define if quality is defined
279 #    format        "44100:16:1"
280 #}
281 #
282 # An example of a httpd output (built-in HTTP streaming server):
283 #
284 #audio_output {
285 #    type        "httpd"
286 #    name        "My HTTP Stream"
287 #    encoder        "vorbis"        # optional, vorbis or lame
288 #    port        "8000"
289 #    bind_to_address    "0.0.0.0"        # optional, IPv4 or IPv6
290 ##    quality        "5.0"            # do not define if bitrate is defined
291 #    bitrate        "128"            # do not define if quality is defined
292 #    format        "44100:16:1"
293 #    max_clients    "0"            # optional 0=no limit
294 #}
295 #
296 # An example of a pulseaudio output (streaming to a remote pulseaudio server)
297 #
298 #audio_output {
299 #    type        "pulse"
300 #    name        "My Pulse Output"
301 ##    server        "remote_server"        # optional
302 ##    sink        "remote_server_sink"    # optional
303 #}
304 #
305 # An example of a winmm output (Windows multimedia API).
306 #
307 #audio_output {
308 #    type        "winmm"
309 #    name        "My WinMM output"
310 ##    device        "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
311 #        or
312 ##    device        "0"        # optional
313 ##    mixer_type    "hardware"    # optional
314 #}
315 #
316 # An example of an openal output.
317 #
318 #audio_output {
319 #    type        "openal"
320 #    name        "My OpenAL output"
321 ##    device        "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
322 #}
323 #
324 # An example of an sndio output.
325 #
326 #audio_output {
327 #    type        "sndio"
328 #    name        "sndio output"
329 #    mixer_type    "hardware"
330 #}
331 #
332 # An example of an OS X output:
333 #
334 #audio_output {
335 #    type        "osx"
336 #    name        "My OS X Device"
337 ##    device        "Built-in Output"    # optional
338 ##    channel_map      "-1,-1,0,1"    # optional
339 #}
340 #
341 ## Example "pipe" output:
342 #
343 #audio_output {
344 #    type        "pipe"
345 #    name        "my pipe"
346 #    command        "aplay -f cd 2>/dev/null"
347 ## Or if you're want to use AudioCompress
348 #    command        "AudioCompress -m | aplay -f cd 2>/dev/null"
349 ## Or to send raw PCM stream through PCM:
350 #    command        "nc example.org 8765"
351 #    format        "44100:16:2"
352 #}
353 #
354 ## An example of a null output (for no audio output):
355 #
356 #audio_output {
357 #    type        "null"
358 #    name        "My Null Output"
359 #    mixer_type      "none"            # optional
360 #}
361 #
362 ###############################################################################
363
364
365 # Normalization automatic volume adjustments ##################################
366 #
367 # This setting specifies the type of ReplayGain to use. This setting can have
368 # the argument "off", "album", "track" or "auto". "auto" is a special mode that
369 # chooses between "track" and "album" depending on the current state of
370 # random playback. If random playback is enabled then "track" mode is used.
371 # See <http://www.replaygain.org> for more details about ReplayGain.
372 # This setting is off by default.
373 #
374 #replaygain            "album"
375 #
376 # This setting sets the pre-amp used for files that have ReplayGain tags. By
377 # default this setting is disabled.
378 #
379 #replaygain_preamp        "0"
380 #
381 # This setting sets the pre-amp used for files that do NOT have ReplayGain tags.
382 # By default this setting is disabled.
383 #
384 #replaygain_missing_preamp    "0"
385 #
386 # This setting enables or disables ReplayGain limiting.
387 # MPD calculates actual amplification based on the ReplayGain tags
388 # and replaygain_preamp / replaygain_missing_preamp setting.
389 # If replaygain_limit is enabled MPD will never amplify audio signal
390 # above its original level. If replaygain_limit is disabled such amplification
391 # might occur. By default this setting is enabled.
392 #
393 #replaygain_limit        "yes"
394 #
395 # This setting enables on-the-fly normalization volume adjustment. This will
396 # result in the volume of all playing audio to be adjusted so the output has 
397 # equal "loudness". This setting is disabled by default.
398 #
399 #volume_normalization        "no"
400 #
401 ###############################################################################
402
403 # Character Encoding ##########################################################
404 #
405 # If file or directory names do not display correctly for your locale then you 
406 # may need to modify this setting.
407 #
408 #filesystem_charset        "UTF-8"
409 #
410 ###############################################################################