mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-14 12:37:16 +00:00
Song: Speed up Amarok song query
This commit is contained in:
4
neofetch
4
neofetch
@@ -1249,9 +1249,7 @@ get_song() {
|
||||
;;
|
||||
|
||||
"amarok"*)
|
||||
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"
|
||||
song="$(qdbus org.kde.amarok /Player GetMetadata | awk -F':' '/^artist/ {a=$2} /^title/ {t=$2} END{if (a && t) print a " - " t}')"
|
||||
;;
|
||||
|
||||
"pragha"*)
|
||||
|
||||
Reference in New Issue
Block a user