aboutsummaryrefslogtreecommitdiff
path: root/bin/br
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-14 21:18:45 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-14 21:18:45 +1200
commit974da7f15d5f8c50ca9b42a16f5a590704d0aa3a (patch)
tree826cd3034e3900a17208120cebc5ec71aaad1073 /bin/br
parentRemove unneeded options from dmenu_run (diff)
downloaddotfiles-974da7f15d5f8c50ca9b42a16f5a590704d0aa3a.tar.gz
dotfiles-974da7f15d5f8c50ca9b42a16f5a590704d0aa3a.zip
Refactor br(1), brxs(1), add xgo(1) and xgoc(1)
Including updating keybindings
Diffstat (limited to 'bin/br')
-rwxr-xr-xbin/br24
1 files changed, 1 insertions, 23 deletions
diff --git a/bin/br b/bin/br
index d092eb6b..399c6038 100755
--- a/bin/br
+++ b/bin/br
@@ -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" "$@"