improved mpd visualization

This commit is contained in:
Enrico Fasoli 2015-08-28 13:59:10 +00:00
parent 8b88d97a7e
commit a7401c2423

View File

@ -32,7 +32,7 @@ getVolume() {
getMPD(){ getMPD(){
echo -n "%{F$BLUE}♫ " echo -n "%{F$BLUE}♫ "
if [ "$(mpc | wc -l)" -gt 1 ]; then if [ "$(mpc | wc -l)" -gt 1 ]; then
echo -n "%{F$BROWN}$(mpc | cut -d$'\n' -f1) %{F$BLUE}♫ %{F$GREY}$(mpc | cut -d$'\n' -f2)" echo -n "%{F$BROWN}$(mpc | cut -d$'\n' -f1) %{F$BLUE}♫ %{F$GREY}$(mpc | cut -d$'\n' -f2 | cut -d ' ' -f1,2,4)"
fi fi
} }