#!/usr/bin/bash source ~/.cache/wal/colors.sh if [ "$(mpc current)" != "" ]; then mpc -f "♪ $(mpc status "%artist% - %title% (%currenttime%/%totaltime%)" | tr -d '\n')" | sed -n 1p mpc -f "♪ $(mpc status "%title% %currenttime%/%totaltime%" | tr -d '\n')" | sed -n 1p echo $foreground else echo "♪ not playing" echo "♪ not playing" echo $color9 fi