Guest User

Untitled

a guest
May 29th, 2012
224
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if [ ! -x /usr/bin/cmus-remote ];
  2. then
  3. echo "cmus is not installed."
  4. exit
  5. fi
  6.  
  7. TITLE=$( cmus-remote -Q 2>/dev/null | grep title | cut -d " " -f 3- )
  8.  
  9. if [ -z "$TITLE"];
  10. then
  11. echo " "
  12. else
  13. echo "$TITLE"
  14. fi
RAW Paste Data