Move MPD conf to org tangle file
This commit is contained in:
parent
36c39b5fbe
commit
f8ace0d6df
2 changed files with 47 additions and 42 deletions
49
dotfiles.org
49
dotfiles.org
|
|
@ -131,7 +131,53 @@ return config
|
||||||
allow-emacs-pinentry
|
allow-emacs-pinentry
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Bluetooth
|
* Audio
|
||||||
|
** mpd
|
||||||
|
#+begin_src ini :tangle ~/.config/mpd/mpd.conf
|
||||||
|
db_file "~/.config/mpd/database"
|
||||||
|
log_file "~/.config/mpd/log"
|
||||||
|
music_directory "/mnt/media/music"
|
||||||
|
playlist_directory "~/.config/mpd/playlists"
|
||||||
|
pid_file "~/.config/mpd/pid"
|
||||||
|
state_file "~/.config/mpd/state"
|
||||||
|
sticker_file "~/.config/mpd/sticker.sql"
|
||||||
|
|
||||||
|
auto_update "yes"
|
||||||
|
|
||||||
|
bind_to_address "127.0.0.1"
|
||||||
|
restore_paused "yes"
|
||||||
|
max_output_buffer_size "16384"
|
||||||
|
|
||||||
|
audio_output {
|
||||||
|
type "alsa"
|
||||||
|
name "alsa for audio soundcard"
|
||||||
|
# mixer_type "software"
|
||||||
|
}
|
||||||
|
|
||||||
|
audio_output {
|
||||||
|
type "fifo"
|
||||||
|
name "toggle_visualizer"
|
||||||
|
path "/tmp/mpd.fifo"
|
||||||
|
format "44100:16:2"
|
||||||
|
}
|
||||||
|
|
||||||
|
audio_output {
|
||||||
|
type "pulse"
|
||||||
|
name "PulseAudio Output"
|
||||||
|
#server "localhost" # optional
|
||||||
|
#sink "alsa_output" # optional
|
||||||
|
}
|
||||||
|
|
||||||
|
audio_output {
|
||||||
|
type "alsa"
|
||||||
|
name "MPD"
|
||||||
|
device "pulse"
|
||||||
|
mixer_control "Master"
|
||||||
|
}
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Bluetooth
|
||||||
|
- TODO: evaluate if this can be done differently in nixos
|
||||||
#+begin_src lua :tangle /sudo::/etc/wireplumber/bluetooth.lua.d/51-bluez-config.lua
|
#+begin_src lua :tangle /sudo::/etc/wireplumber/bluetooth.lua.d/51-bluez-config.lua
|
||||||
bluez_monitor.properties = {
|
bluez_monitor.properties = {
|
||||||
["bluez5.enable-sbc-xq"] = true,
|
["bluez5.enable-sbc-xq"] = true,
|
||||||
|
|
@ -246,7 +292,6 @@ EndSection
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Special Exceptions
|
* Special Exceptions
|
||||||
|
|
||||||
** Tdrop
|
** Tdrop
|
||||||
- Must be installed from the repo, doesn't work from nix repos
|
- Must be installed from the repo, doesn't work from nix repos
|
||||||
- Must be moved to /usr/local/bin and given same permissions that come from make install
|
- Must be moved to /usr/local/bin and given same permissions that come from make install
|
||||||
|
|
|
||||||
|
|
@ -1,40 +0,0 @@
|
||||||
db_file "~/.config/mpd/database"
|
|
||||||
log_file "~/.config/mpd/log"
|
|
||||||
music_directory "/mnt/media/music"
|
|
||||||
playlist_directory "~/.config/mpd/playlists"
|
|
||||||
pid_file "~/.config/mpd/pid"
|
|
||||||
state_file "~/.config/mpd/state"
|
|
||||||
sticker_file "~/.config/mpd/sticker.sql"
|
|
||||||
|
|
||||||
auto_update "yes"
|
|
||||||
|
|
||||||
bind_to_address "127.0.0.1"
|
|
||||||
restore_paused "yes"
|
|
||||||
max_output_buffer_size "16384"
|
|
||||||
|
|
||||||
audio_output {
|
|
||||||
type "alsa"
|
|
||||||
name "alsa for audio soundcard"
|
|
||||||
# mixer_type "software"
|
|
||||||
}
|
|
||||||
|
|
||||||
audio_output {
|
|
||||||
type "fifo"
|
|
||||||
name "toggle_visualizer"
|
|
||||||
path "/tmp/mpd.fifo"
|
|
||||||
format "44100:16:2"
|
|
||||||
}
|
|
||||||
|
|
||||||
audio_output {
|
|
||||||
type "pulse"
|
|
||||||
name "PulseAudio Output"
|
|
||||||
#server "localhost" # optional
|
|
||||||
#sink "alsa_output" # optional
|
|
||||||
}
|
|
||||||
|
|
||||||
audio_output {
|
|
||||||
type "alsa"
|
|
||||||
name "MPD"
|
|
||||||
device "pulse"
|
|
||||||
mixer_control "Master"
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue