🢀︎ archlinux :: ccb374d


commit ccb374df89c83d2cf1a8da3071f3d59fa3cd1241
Author: acidvegas <acid.vegas@acid.vegas>
Date:   Sun Jul 14 00:49:35 2019 -0400

    added script to fetch cmus playing info

diff --git a/home/acidvegas/.scripts/cmus-playing b/home/acidvegas/.scripts/cmus-playing
new file mode 100755
index 0000000..341aeee
--- /dev/null
+++ b/home/acidvegas/.scripts/cmus-playing
@@ -0,0 +1,8 @@
+#!/bin/sh
+if ps -C cmus > /dev/null; then
+	artist=`cmus-remote -Q | grep --text '^tag artist' | sed '/^tag artistsort/d' | awk '{gsub("tag artist ", "");print}'`
+	title=`cmus-remote -Q  | grep --text '^tag title' | sed -e 's/tag title //' | awk '{gsub("tag title ", "");print}'`
+	echo "Now Playing: $artist - $title"
+else
+	echo ""
+fi
\ No newline at end of file