38 lines
928 B
Org Mode
38 lines
928 B
Org Mode
I keep my music in =~/music/ogg=. Playlists go right next to it.
|
|
|
|
#+BEGIN_SRC conf-space
|
|
music_directory "~/music/ogg"
|
|
playlist_directory "~/music/playlists"
|
|
#+END_SRC
|
|
|
|
Store log, state and pid files in =~/.local/share/mpd=
|
|
|
|
#+BEGIN_SRC conf-space
|
|
log_file "~/.local/share/mpd/mpd.log"
|
|
pid_file "~/.local/share/mpd/mpd.pid"
|
|
db_file "~/.local/share/mpd/mpd.db"
|
|
state_file "~/.local/share/mpd/mpdstate"
|
|
#+END_SRC
|
|
|
|
Use pulseaudio to play the music. When I didn't specify this
|
|
explicitly it'd use Alsa instead.
|
|
|
|
#+BEGIN_SRC conf-space
|
|
audio_output {
|
|
type "pulse"
|
|
name "MPD Pulse"
|
|
}
|
|
#+END_SRC
|
|
|
|
Add an output for visualization. I don't use this often as usually it
|
|
bugs me a lot when it starts to lose sync, but it's still fun from
|
|
time to time.
|
|
|
|
#+BEGIN_SRC conf-space
|
|
audio_output {
|
|
type "fifo"
|
|
name "Visualizer"
|
|
path "/tmp/mpd.fifo"
|
|
format "44100:16:2"
|
|
}
|
|
#+END_SRC
|