mediaopener - plumber - Plumber – a modern approach to plumbing | |
git clone git://r-36.net/plumber | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- mediaopener (317B) --- 1 #!/bin/sh 2 3 if [ $# -lt 1 ]; 4 then 5 printf "usage: %s URI\n" "$(basename "$0")" >&2 6 exit 1 7 fi 8 9 $XTERM -e sh -c "$PLUMB_MEDIA \"$1\"" & 10 11 ## if mpv doesn't understand gopher ## 12 #if [ $(expr "$1" : "^gopher://") -eq 9 ]; 13 #then 14 # $XTERM -e sh -c "curl -s \"$1\" | mpv -" & 15 #else 16 # $XTERM -e sh -c "mpv \"$1\"" & 17 #fi |