X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/4cad86763c06ea94f86eb522395313a13e2676e7..HEAD:/ranger/rifle.conf diff --git a/ranger/rifle.conf b/ranger/rifle.conf index bd4b793..182e53d 100644 --- a/ranger/rifle.conf +++ b/ranger/rifle.conf @@ -54,6 +54,11 @@ match ^https?://(www|m).youtube.com/watch\?, has mpv, X, flag f = mpv --quiet match ^https?://youtu.be/, has mpv, X, terminal = mpv --quiet -- $1 match ^https?://youtu.be/, has mpv, X, flag f = mpv --quiet -- $1 +# Open meet and slack huddles in new windows +match ^https?://meet.google.com/, has qutebrowser, X, flag f = qutebrowser --target window -- "$@" +# the url is actually open=start_huddle, but rifle cannot match = (https://github.com/ranger/ranger/issues/2111) +match ^https?://app.slack.com/.*[?&]open.start_huddle, has qutebrowser, X, flag f = qutebrowser --target window -- "$@" + # open web url with BROWSER match ^https?://, X, flag f = $BROWSER -- "$@" @@ -135,6 +140,7 @@ ext cbz, has zathura, X, flag f = zathura -- "$@" mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@" mime ^image/svg, has display, X, flag f = display -- "$@" +ext gif, has mpv, X, flag f = mpv --loop -- "$@" mime ^image, has feh, X, flag f = feh -- "$@" mime ^image, has gimp, X, flag f = gimp -- "$@" ext xcf, X, flag f = gimp -- "$@" @@ -190,7 +196,7 @@ label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1" #------------------------------------------- # Generic file openers #------------------------------------------- -label open, has xdg-open = xdg-open -- "$@" +label open, has xdg-open = xdg-open "$@" label open, has open = open -- "$@" # Define the editor for non-text files + pager as last action