Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ## Script to push 'now playing' from cmus to conky. Fixed to stop the Album Artist and other things being displayed by accident.
- ## Updated to be more foolproof.
- if [ ! -x /usr/bin/cmus-remote ]; then
- echo "cmus is not installed."
- exit
- fi
- # The below lines now search specifically for "tag foo".
- ARTIST=$( cmus-remote -Q 2>/dev/null | grep "tag artist" | cut -d " " -f 3- )
- TITLE=$( cmus-remote -Q 2>/dev/null | grep "tag title" | cut -d " " -f 3- )
- if [ -z "$ARTIST" ]; then
- echo "Nothing"
- else
- echo "$ARTIST - $TITLE"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement