diff options
Diffstat (limited to 'bin/br')
-rwxr-xr-x | bin/br | 24 |
1 files changed, 1 insertions, 23 deletions
@@ -1,25 +1,3 @@ #!/bin/sh -# Probably launch $BROWSER, but try a few shortcuts first - -# Get the URL and its MIME type -url=$1 -mt=$(urlmt "$url") - -# If the MIME type is an image, load it in feh(1) -case $mt in - image/gif) ;; - image/*) - curl -- "$url" | feh - && exit - ;; -esac - -# If it's a YouTube video without a given start time, load it in mpv(1) -case $url in - *youtube.com/watch*[?\&]t=) ;; - *youtube.com/watch*) - mpv -- "$url" && exit - ;; -esac - -# Otherwise, just ask $BROWSER to handle it +# Just launch $BROWSER with any given arguments exec "$BROWSER" "$@" |