diff --git a/config/scripts/now-playing.sh b/config/scripts/now-playing.sh new file mode 100755 index 0000000..f0c9a99 --- /dev/null +++ b/config/scripts/now-playing.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +TITLE=$(cmus-remote -Q | grep title | cut --delimiter=' ' --fields=3-) +ARTIST=$(cmus-remote -Q | grep ' artist ' | cut --delimiter=' ' --fields=3-) + +if [ -n "$ARTIST" ] || [ -n "$TITLE" ] ; then + echo "$ARTIST - $TITLE" +fi \ No newline at end of file