mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 04:22:32 +00:00
Added support for Banshee Music Player
This commit is contained in:
6
neofetch
6
neofetch
@@ -1231,6 +1231,12 @@ getsong() {
|
||||
awk -F 'string "' '{printf $2}')"
|
||||
state="${state//\"}"
|
||||
|
||||
elif [ -n "$(ps x | awk '!(/awk/) && /banshee/')" ]; then
|
||||
artist="$(banshee --query-artist | awk -F':' '{print $2}')"
|
||||
title="$(banshee --query-title | awk -F':' '{print $2}')"
|
||||
song="$artist - $title"
|
||||
state="$(banshee --query-current-state | awk -F':' '{print $2}')"
|
||||
|
||||
else
|
||||
song="Not Playing"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user