Add MPD config
This commit is contained in:
parent
4bc5c06c64
commit
06239aa7d7
6 changed files with 57 additions and 5 deletions
8
dotfiles.mk
Normal file
8
dotfiles.mk
Normal file
|
@ -0,0 +1,8 @@
|
|||
EMACS = /usr/bin/emacs
|
||||
|
||||
define tangle =
|
||||
$(EMACS) -batch \
|
||||
-eval "(package-initialize)"\
|
||||
-load ob-tangle \
|
||||
-eval "(org-babel-tangle-file \"\$<\" \"$(notdir $@)\" \"$(1)\")"
|
||||
endef
|
|
@ -1,4 +1,4 @@
|
|||
EMACS = /usr/bin/emacs
|
||||
include ../../dotfiles.mk
|
||||
|
||||
AUTOLOADS_FILE = site-lisp/site-autoloads.el
|
||||
UNWANTED = $(AUTOLOADS_FILE) site-lisp/flycheck_% site-lisp/flycheck-%
|
||||
|
@ -7,10 +7,7 @@ SITE_LISPS = $(addsuffix c,$(filter-out $(UNWANTED),$(wildcard site-lisp/*.el)))
|
|||
all: init.elc $(AUTOLOADS_FILE) $(SITE_LISPS)
|
||||
|
||||
%.el: %.org
|
||||
$(EMACS) -batch -eval "(progn \
|
||||
(package-initialize) \
|
||||
(require 'ob-tangle) \
|
||||
(org-babel-tangle-file \"$<\" \"$@\" \"emacs-lisp\"))"
|
||||
$(call tangle,emacs-lisp)
|
||||
|
||||
%.elc: %.el
|
||||
$(EMACS) -batch \
|
||||
|
|
1
mpd/.config/mpd/.gitignore
vendored
Normal file
1
mpd/.config/mpd/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.conf
|
38
mpd/.config/mpd/mpd.org
Normal file
38
mpd/.config/mpd/mpd.org
Normal file
|
@ -0,0 +1,38 @@
|
|||
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
|
2
mpd/.local/share/mpd/.gitignore
vendored
Normal file
2
mpd/.local/share/mpd/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
# This file is only here to keep the mpd config happy.
|
||||
*
|
6
mpd/GNUmakefile
Normal file
6
mpd/GNUmakefile
Normal file
|
@ -0,0 +1,6 @@
|
|||
include ../dotfiles.mk
|
||||
|
||||
all: .config/mpd/mpd.conf
|
||||
|
||||
%.conf: %.org
|
||||
$(call tangle,conf-space)
|
Loading…
Reference in a new issue