Added support for deadbeef

This commit is contained in:
Muhammad Herdiansyah 2016-09-11 23:37:23 +07:00
parent 7a7e7aeb1f
commit 42048570d4

View file

@ -1242,6 +1242,9 @@ getsong() {
title="$(qdbus org.kde.amarok /Player GetMetadata | awk -F':' '/title/ {print $2}')"
song="$artist - $title"
elif [ -n "$(ps x | awk '!(/awk/) && /deadbeef/')" ]; then
song="$(deadbeef --nowplaying '%a - %t')"
else
song="Not Playing"
fi