Added support for Banshee Music Player
This commit is contained in:
parent
8c459ba781
commit
fb4638f1af
1 changed files with 6 additions and 0 deletions
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
|
||||
|
|
Loading…
Reference in a new issue