X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/e13a60251b6e72001791dd8cef0e60f99d406e28..7f2776c76c58df09bdc14e846934ddb295430c0d:/ranger/rifle.conf diff --git a/ranger/rifle.conf b/ranger/rifle.conf index 9a61d1b..1cac50c 100644 --- a/ranger/rifle.conf +++ b/ranger/rifle.conf @@ -49,8 +49,13 @@ # only running the current file even if you have marked multiple files. # Play videos with mpv -match ^https?://www.youtube.com/watch\?, has mpv, X, terminal = mpv -- $1 -match ^https?://www.youtube.com/watch\?, has mpv, X, flag f = mpv --quiet -- $1 +match ^https?://(www|m).youtube.com/watch\?, has mpv, X, terminal = mpv -- $1 +match ^https?://(www|m).youtube.com/watch\?, has mpv, X, flag f = mpv --quiet -- $1 +match ^https?://youtu.be/, has mpv, X, terminal = mpv --quiet -- $1 +match ^https?://youtu.be/, has mpv, X, flag f = mpv --quiet -- $1 + +# open web url with BROWSER +match ^https?://, X, flag f = $BROWSER -- "$@" #------------------------------------------- # Websites