dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.margiolis.net/dotfiles.git
Log | Files | Refs | README | LICENSE

vds (389B)


      1 #!/bin/sh
      2 
      3 PLAYLIST="${HOME}/shit/playlist"
      4 QUEUE="$(vdq -f)"
      5 while getopts p:q arg; do
      6 case "${arg}" in
      7         p)      PLAYLIST="${OPTARG}" ;;
      8         q)      vdq -a "$(cat ${PLAYLIST} | dmenu -l 30)"
      9                 exit 0 ;;
     10         *)      echo "usage: ${0##*/} [-q] [-p playlist]" 1>&2
     11                 exit 1 ;;
     12 esac
     13 done
     14 cat ${PLAYLIST} | dmenu -l 30 | awk '{print $1}' | xargs mpv