dots

Personal dotfiles
git clone git://git.gormless.xyz/dots.git
Log | Files | Refs

showmus (279B)


      1 #!/bin/sh
      2 
      3 title=$(cmus-remote -C status | grep title | cut -f 3-$@ -d " ")
      4 artist=$(cmus-remote -C  status | grep 'tag artist ' | cut -f 3-$@ -d " ")
      5 
      6 [ -z "$artist" ] && artist=$(cmus-remote -C  status | grep 'tag albumartist ' | cut -f 3-$@ -d " ")
      7 
      8 printf "$title - $artist"