bin

git clone git://git.codymlewis.com/bin.git
Log | Files | Refs

music (228B)


      1 #!/bin/sh
      2 
      3 
      4 case $BUTTON in
      5         1) setsid "$TERMINAL" -e ncmpcpp & ;;
      6 esac
      7 
      8 mpc_status=$(mpc status)
      9 
     10 printf "%s" "$mpc_status" | grep 'playing' > /dev/null && \
     11         printf " %s" "$mpc_status" | head -n1 | cut -c -46