From 76f8c36f579017612c5050a9d237b47a575808a3 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Fri, 28 Jun 2024 22:35:08 +0300 Subject: [PATCH] bin/mp: mpd adjustments --- .local/bin/scripts/mp | 2 +- .local/bin/scripts/mpdr | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.local/bin/scripts/mp b/.local/bin/scripts/mp index 2a9ac8b..14bd9ce 100755 --- a/.local/bin/scripts/mp +++ b/.local/bin/scripts/mp @@ -7,7 +7,7 @@ MPD_CONF=${XDG_CONFIG_HOME:-$HOME/.config}/mpd/mpd.conf MUSIC="${MUSIC:-$(cat $MPD_CONF | grep music_directory | cut -d'"' -f2 | sed "s|~|$HOME|")}" PLAYLISTS="$(cat $MPD_CONF | grep playlist_directory | cut -d'"' -f2 | sed "s|~|$HOME|" || echo "$MUSIC/Playlists")" -LINKS="$MUSIC/links" +LINKS="$MUSIC/.links" if test "$1" = "-r" then shift test "$1" = "-v" && verbose=-v && set -x && shift diff --git a/.local/bin/scripts/mpdr b/.local/bin/scripts/mpdr index cefaebd..4f57d85 100755 --- a/.local/bin/scripts/mpdr +++ b/.local/bin/scripts/mpdr @@ -5,3 +5,8 @@ cd $XDG_CONFIG_HOME/mpd mv *template .. mv ../*template . systemctl --user restart mpd +# https://mpd.readthedocs.io/en/latest/user.html#cross-fading +mpc crossfade 4 +mpc mixrampdelay 1 +mpc mixrampdb -17 +#mpc mixramp_analyzer "yes"