dotfiles

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

vdq (473B)


      1 #!/bin/sh
      2 
      3 QUEUE="${HOME}/shit/queue"
      4 while getopts a:dfv arg; do
      5 case "${arg}" in
      6         a)      echo "${OPTARG}" >> ${QUEUE}
      7                 exit 0 ;;
      8         d)      rm ${QUEUE}
      9                 exit 0 ;;
     10         f)      echo ${QUEUE}
     11                 exit 0 ;;
     12         v)      cat ${QUEUE} | dmenu -l 30
     13                 exit 0 ;;
     14         *)      echo "usage: ${0##*/} [-dfv] [-a url]" 1>&2
     15                 exit 1 ;;
     16 esac
     17 done
     18 cat ${QUEUE} | awk '{print $1}' | xargs mpv