mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-25 12:55:00 +00:00
Added support for Amarok
This commit is contained in:
5
neofetch
5
neofetch
@@ -1237,6 +1237,11 @@ getsong() {
|
||||
song="$artist - $title"
|
||||
state="$(banshee --query-current-state | awk -F':' '{print $2}')"
|
||||
|
||||
elif [ -n "$(ps x | awk '!(/awk/) && /amarok/')" ]; then
|
||||
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"
|
||||
|
||||
else
|
||||
song="Not Playing"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user