Fix sb-music to reduce clutter
This commit is contained in:
parent
2151f02b91
commit
33325cb475
|
@ -18,7 +18,7 @@ if status="$(playerctl "$@" status 2>&1)" && [ "$status" != "Stopped" ]; then
|
||||||
currentSong="$(playerctl "$@" metadata --format "{{title}} - {{artist}}")"
|
currentSong="$(playerctl "$@" metadata --format "{{title}} - {{artist}}")"
|
||||||
else
|
else
|
||||||
[ "$(mpc status "%state%")" = "paused" ] && icon="$pausedIcon"
|
[ "$(mpc status "%state%")" = "paused" ] && icon="$pausedIcon"
|
||||||
currentSong="$(mpc current -f "%title%[ - %artist%]")"
|
currentSong="$(mpc current -f "%title%")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -z "$currentSong" ] && exit
|
[ -z "$currentSong" ] && exit
|
||||||
|
|
Loading…
Reference in a new issue