Advertisement
Guest User

Untitled

a guest
Nov 4th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.31 KB | None | 0 0
  1.  
  2. #!/bin/bash
  3.  
  4. prepend_zero () {
  5.     seq -f "%02g" $1 $1
  6. }
  7. if ! (cmus-remote -Q | grep -q 'status stopped'); then
  8.  
  9. artist=$(echo -n $(cmus-remote -C status | grep artist -m 1| cut -d ' ' -f 3-))
  10. song=$(echo -n $(cmus-remote -C status | grep title | cut -d ' ' -f 3-))
  11.  
  12. echo -n "$artist  -  $song"
  13.  
  14. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement