Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- prepend_zero () {
- seq -f "%02g" $1 $1
- }
- if ! (cmus-remote -Q | grep -q 'status stopped'); then
- artist=$(echo -n $(cmus-remote -C status | grep artist -m 1| cut -d ' ' -f 3-))
- song=$(echo -n $(cmus-remote -C status | grep title | cut -d ' ' -f 3-))
- echo -n "$artist - $song"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement