Song: Speed up Banshee song query
This commit is contained in:
parent
4b61dc1a9b
commit
622fef7780
4
neofetch
4
neofetch
|
@ -1243,9 +1243,7 @@ get_song() {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"banshee"*)
|
"banshee"*)
|
||||||
artist="$(banshee --query-artist | awk -F':' '{print $2}')"
|
song="$(banshee --query-artist --query-title | awk -F':' '/^artist/ {a=$2} /^title/ {t=$2} END{if (a && t) print a " - " t}')"
|
||||||
title="$(banshee --query-title | awk -F':' '{print $2}')"
|
|
||||||
song="$artist - $title"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"amarok"*)
|
"amarok"*)
|
||||||
|
|
Reference in New Issue