mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
Song: Speed up Pragha song query
This commit is contained in:
4
neofetch
4
neofetch
@@ -1255,9 +1255,7 @@ get_song() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"pragha"*)
|
"pragha"*)
|
||||||
artist="$(pragha -c | awk -F':' '/artist/ {print $2}')"
|
song="$(pragha -c | awk -F':' '/^artist/ {a=$2} /^title/ {t=$2} END{if (a && t) print a " - " t}')"
|
||||||
title="$(pragha -c | awk -F':' '/title/ {print $2}')"
|
|
||||||
song="$artist - $title"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"exaile"*)
|
"exaile"*)
|
||||||
|
Reference in New Issue
Block a user