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