bin/mp: mpd adjustments

This commit is contained in:
xeruf 2024-06-28 22:35:08 +03:00
parent b73b3b32cd
commit 76f8c36f57
2 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,7 @@
MPD_CONF=${XDG_CONFIG_HOME:-$HOME/.config}/mpd/mpd.conf MPD_CONF=${XDG_CONFIG_HOME:-$HOME/.config}/mpd/mpd.conf
MUSIC="${MUSIC:-$(cat $MPD_CONF | grep music_directory | cut -d'"' -f2 | sed "s|~|$HOME|")}" 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")" 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" if test "$1" = "-r"
then shift then shift
test "$1" = "-v" && verbose=-v && set -x && shift test "$1" = "-v" && verbose=-v && set -x && shift

View File

@ -5,3 +5,8 @@ cd $XDG_CONFIG_HOME/mpd
mv *template .. mv *template ..
mv ../*template . mv ../*template .
systemctl --user restart mpd 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"