Added password to mpd

Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
Marko Korhonen 2019-11-02 08:45:18 +02:00
parent 67a7029792
commit 708f1a4fb1
5 changed files with 17 additions and 5 deletions

View file

@ -157,6 +157,9 @@ dotfiles:
f_flashfocus.yml:
src: .config/flashfocus/flashfocus.yml
dst: ~/.config/flashfocus/flashfocus.yml
f_config:
src: .config/ncmpcpp/config
dst: ~/.config/ncmpcpp/config
profiles:
Media:
dotfiles:
@ -196,6 +199,7 @@ profiles:
- f_efm-langserver.yaml
- f_fonts.conf
- f_flashfocus.yml
- f_config
include:
- Terminal
- Media

View file

@ -5,16 +5,21 @@ log_file "~/.mpd/log"
pid_file "~/.mpd/pid"
state_file "~/.mpd/state"
sticker_file "~/.mpd/sticker.sql"
input {
plugin "curl"
}
replaygain "track"
default_permissions "read"
password "{{@@ env['PASS_MPD'] @@}}@read,add,control"
password "{{@@ env['PASS_MPD_ADMIN'] @@}}@read,add,control,admin"
audio_output {
type "fifo"
name "my_fifo"
name "Visualizer"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
audio_output {
type "pulse"
name "pulse audio"
name "MPD PulseAudio"
}

View file

@ -0,0 +1 @@
mpd_host = {{@@ env['PASS_MPD'] @@}}@localhost

View file

@ -5,6 +5,7 @@ export PASS_LISTENBRAINZ="$(pass entertainment/musicbrainz.org | rg 'listenbrain
export PASS_MUSPY="$(pass entertainment/muspy.com | head -n 1)"
export PASS_ARIA2="$(pass linux/aria2 | head -n 1)"
export PASS_MPD="$(pass linux/mpd | head -n 1)"
export PASS_MPD_ADMIN="$(pass linux/mpd-admin | head -n 1)"
export ME_FULLNAME="$(pass me | head -n 1)"
export ME_ADDRESS="$(pass me | rg 'address' | cut -d' ' -f2-)"

View file

@ -9,6 +9,7 @@ export PASS_LISTENBRAINZ="$PASS_LISTENBRAINZ"
export PASS_MUSPY="$PASS_MUSPY"
export PASS_ARIA2="$PASS_ARIA2"
export PASS_MPD="$PASS_MPD"
export PASS_MPD_ADMIN="$PASS_MPD_ADMIN"
export ME_FULLNAME="$ME_FULLNAME"
export ME_ADDRESS="$ME_ADDRESS"