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: f_flashfocus.yml:
src: .config/flashfocus/flashfocus.yml src: .config/flashfocus/flashfocus.yml
dst: ~/.config/flashfocus/flashfocus.yml dst: ~/.config/flashfocus/flashfocus.yml
f_config:
src: .config/ncmpcpp/config
dst: ~/.config/ncmpcpp/config
profiles: profiles:
Media: Media:
dotfiles: dotfiles:
@ -196,6 +199,7 @@ profiles:
- f_efm-langserver.yaml - f_efm-langserver.yaml
- f_fonts.conf - f_fonts.conf
- f_flashfocus.yml - f_flashfocus.yml
- f_config
include: include:
- Terminal - Terminal
- Media - Media

View file

@ -5,16 +5,21 @@ log_file "~/.mpd/log"
pid_file "~/.mpd/pid" pid_file "~/.mpd/pid"
state_file "~/.mpd/state" state_file "~/.mpd/state"
sticker_file "~/.mpd/sticker.sql" 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 { audio_output {
type "fifo" type "fifo"
name "my_fifo" name "Visualizer"
path "/tmp/mpd.fifo" path "/tmp/mpd.fifo"
format "44100:16:2" format "44100:16:2"
} }
audio_output { audio_output {
type "pulse" 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_MUSPY="$(pass entertainment/muspy.com | head -n 1)"
export PASS_ARIA2="$(pass linux/aria2 | head -n 1)" export PASS_ARIA2="$(pass linux/aria2 | head -n 1)"
export PASS_MPD="$(pass linux/mpd | 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_FULLNAME="$(pass me | head -n 1)"
export ME_ADDRESS="$(pass me | rg 'address' | cut -d' ' -f2-)" 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_MUSPY="$PASS_MUSPY"
export PASS_ARIA2="$PASS_ARIA2" export PASS_ARIA2="$PASS_ARIA2"
export PASS_MPD="$PASS_MPD" export PASS_MPD="$PASS_MPD"
export PASS_MPD_ADMIN="$PASS_MPD_ADMIN"
export ME_FULLNAME="$ME_FULLNAME" export ME_FULLNAME="$ME_FULLNAME"
export ME_ADDRESS="$ME_ADDRESS" export ME_ADDRESS="$ME_ADDRESS"