Added support for Amarok
This commit is contained in:
parent
fb4638f1af
commit
7a7e7aeb1f
1 changed files with 5 additions and 0 deletions
5
neofetch
5
neofetch
|
@ -1237,6 +1237,11 @@ getsong() {
|
||||||
song="$artist - $title"
|
song="$artist - $title"
|
||||||
state="$(banshee --query-current-state | awk -F':' '{print $2}')"
|
state="$(banshee --query-current-state | awk -F':' '{print $2}')"
|
||||||
|
|
||||||
|
elif [ -n "$(ps x | awk '!(/awk/) && /amarok/')" ]; then
|
||||||
|
artist="$(qdbus org.kde.amarok /Player GetMetadata | awk -F':' '/^artist/ {print $2}')"
|
||||||
|
title="$(qdbus org.kde.amarok /Player GetMetadata | awk -F':' '/title/ {print $2}')"
|
||||||
|
song="$artist - $title"
|
||||||
|
|
||||||
else
|
else
|
||||||
song="Not Playing"
|
song="Not Playing"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue