Added support for Banshee Music Player

This commit is contained in:
Muhammad Herdiansyah 2016-09-04 19:28:08 +07:00
parent 8c459ba781
commit fb4638f1af
1 changed files with 6 additions and 0 deletions

View File

@ -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