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 6d2e7dc0c9
commit 71b5e28521
No known key found for this signature in database
GPG Key ID: 911B85FBC6003FE5
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"