]> git.rmz.io Git - dotfiles.git/blobdiff - ranger/rifle.conf
rifle: support mobile links for youtube too
[dotfiles.git] / ranger / rifle.conf
index 5b231d07b2649025742e6f30443910e8a2e03d6a..1cac50cbd3e2c675d1f12f667c8106d8936f63b3 100644 (file)
 # 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 -- "$@"