Fix sb-music to reduce clutter

This commit is contained in:
Alexis Jhon Gaspar 2023-09-22 20:32:39 +08:00
parent 2151f02b91
commit 33325cb475
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ if status="$(playerctl "$@" status 2>&1)" && [ "$status" != "Stopped" ]; then
currentSong="$(playerctl "$@" metadata --format "{{title}} - {{artist}}")"
else
[ "$(mpc status "%state%")" = "paused" ] && icon="$pausedIcon"
currentSong="$(mpc current -f "%title%[ - %artist%]")"
currentSong="$(mpc current -f "%title%")"
fi
[ -z "$currentSong" ] && exit