Song: Speed up Amarok song query
This commit is contained in:
parent
85fdd54f95
commit
4b61dc1a9b
1 changed files with 1 additions and 3 deletions
4
neofetch
4
neofetch
|
@ -1249,9 +1249,7 @@ get_song() {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"amarok"*)
|
"amarok"*)
|
||||||
artist="$(qdbus org.kde.amarok /Player GetMetadata | awk -F':' '/^artist/ {print $2}')"
|
song="$(qdbus org.kde.amarok /Player GetMetadata | awk -F':' '/^artist/ {a=$2} /^title/ {t=$2} END{if (a && t) print a " - " t}')"
|
||||||
title="$(qdbus org.kde.amarok /Player GetMetadata | awk -F':' '/title/ {print $2}')"
|
|
||||||
song="$artist - $title"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"pragha"*)
|
"pragha"*)
|
||||||
|
|
Loading…
Reference in a new issue