Added support for deadbeef
This commit is contained in:
parent
7a7e7aeb1f
commit
42048570d4
3
neofetch
3
neofetch
|
@ -1242,6 +1242,9 @@ getsong() {
|
||||||
title="$(qdbus org.kde.amarok /Player GetMetadata | awk -F':' '/title/ {print $2}')"
|
title="$(qdbus org.kde.amarok /Player GetMetadata | awk -F':' '/title/ {print $2}')"
|
||||||
song="$artist - $title"
|
song="$artist - $title"
|
||||||
|
|
||||||
|
elif [ -n "$(ps x | awk '!(/awk/) && /deadbeef/')" ]; then
|
||||||
|
song="$(deadbeef --nowplaying '%a - %t')"
|
||||||
|
|
||||||
else
|
else
|
||||||
song="Not Playing"
|
song="Not Playing"
|
||||||
fi
|
fi
|
||||||
|
|
Reference in New Issue