From 2853998f22464f71f499ff808ed866f1e11d118b Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Tue, 22 Sep 2020 18:42:13 +0800 Subject: [PATCH] [feature] visualization for ncmpcpp --- player/config/mpd/mpd.conf | 28 +++++++++++++++++----------- player/install.sh | 5 +++++ 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/player/config/mpd/mpd.conf b/player/config/mpd/mpd.conf index b57c995..8d06951 100644 --- a/player/config/mpd/mpd.conf +++ b/player/config/mpd/mpd.conf @@ -202,16 +202,16 @@ input { # autodetection for one sound card. # # An example of an ALSA output: -# -#audio_output { -# type "alsa" -# name "My ALSA Device" -## device "hw:0,0" # optional -## mixer_type "hardware" # optional -## mixer_device "default" # optional -## mixer_control "PCM" # optional -## mixer_index "0" # optional -#} + +audio_output { + type "alsa" + name "My ALSA Device" +# device "hw:0,0" # optional +# mixer_type "hardware" # optional +# mixer_device "default" # optional +# mixer_control "PCM" # optional +# mixer_index "0" # optional +} # # An example of an OSS output: # @@ -338,7 +338,13 @@ input { # name "My Null Output" # mixer_type "none" # optional #} -# + +audio_output { + type "fifo" + name "FIFO" + path "/tmp/mpd.fifo" + format "44100:16:2" +} ############################################################################### diff --git a/player/install.sh b/player/install.sh index 9f560d0..4f4c752 100755 --- a/player/install.sh +++ b/player/install.sh @@ -21,6 +21,11 @@ lnsf $DIR/config/mpv/scripts/organize.lua $XDG_CONFIG_HOME/mpv/scripts/organize. lnsf $DIR/config/ncmpcpp/bindings $XDG_CONFIG_HOME/ncmpcpp/bindings lnsf $DIR/config/ncmpcpp/config $XDG_CONFIG_HOME/ncmpcpp/config +# prevent system-wide mpd +sudo systemctl disable mpd +sudo systemctl stop mpd +mkdir -p $HOME/.mpd/playlists + # enable for current user systemctl --user enable mpd systemctl --user start mpd