Commit 539c1462 authored by Dylan Araps's avatar Dylan Araps Committed by GitHub

Merge pull request #632 from dawidd6/master

MPD server on another host
parents a3c41033 ee41671d
......@@ -1332,6 +1332,10 @@ get_song() {
song="$(dbus-send --print-reply --dest=net.sacredchao.QuodLibet /net/sacredchao/QuodLibet net.sacredchao.QuodLibet.CurrentSong |\
awk -F'"' '/artist/ {getline; a=$2} /title/ {getline; t=$2} END{print a " - " t}')"
;;
*)
mpc >/dev/null 2>&1 && song="$(mpc current)"
;;
esac
[[ "$(trim "$song")" = "-" ]] && unset -v song
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment