From fb4638f1af9ddd3966cdbe2a17b0f406ccb23c95 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Sun, 4 Sep 2016 19:28:08 +0700 Subject: [PATCH] Added support for Banshee Music Player --- neofetch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/neofetch b/neofetch index 58feadc7..f2290aed 100755 --- a/neofetch +++ b/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