From 82c4bb678025af8efa67346d102df332e0cf0abd Mon Sep 17 00:00:00 2001 From: katherine Date: Wed, 25 Mar 2026 17:25:14 +1000 Subject: assorted rifle tweaks --- .config/ranger/rifle.conf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to '.config/ranger') diff --git a/.config/ranger/rifle.conf b/.config/ranger/rifle.conf index 08d6aee..9000b3a 100644 --- a/.config/ranger/rifle.conf +++ b/.config/ranger/rifle.conf @@ -51,11 +51,13 @@ ext 1|2|3|4|5|6|7|8|9 = man "$@" # editor for text files mime ^text, label editor = "$EDITOR" -- "$@" -mime ^text, label weditor X, flag f t = "$EDITOR" -- "$@" +mime ^text, label weditor, X, flag f t = "$EDITOR" -- "$@" !mime ^text, ext xml|html|xhtml|csv|tex|py|pl|rb|sh|php = "$EDITOR" -- "$@" !mime ^text, ext xml|html|xhtml|csv|tex|py|pl|rb|sh|php, X, flag f t = "$EDITOR" -- "$@" +ext srt|ass, has aegisub, X, flag f = aegisub -- "$@" + # websites ext x?html?, has firefox, X, flag f = firefox -- "$@" ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@" @@ -74,14 +76,14 @@ ext php, hash php = php -- "$1" # audio / video mime ^audio, terminal, has mpv = mpv --no-video -- "$@" -mime ^audio, !terminal, has mpv, X, flag f = mpv --force-window=yes -- "$@" +mime ^audio, !terminal, has mpv, X, flag f = mpv --force-window -- "$@" mime ^audio, terminal, has audio-convert = audio-convert -d converted -c vorbis -q 10 "$@" mime ^audio, terminal, has audio-convert = audio-convert -d converted -m true -c opus "$@" mime ^audio, terminal, has audio-concat = audio-concat -o concatenated.opus "$@" mime ^audio, terminal, has audio-concat = audio-concat -o concatenated.flac "$@" -mime ^video, has mpv, X, flag f = mpv -- "$@" +mime ^video, has mpv, X, flag f = mpv --force-window -- "$@" mime ^video, has mpv, terminal, !X = mpv --vo=tct -- "$@" # documents @@ -89,7 +91,7 @@ ext djvu|pdf|ps, has zathura, X, flag f = zathura -- "$@" ext djvu|pdf, has evince, X, flag f = evince -- "$@" ext djvu|pdf, has inkscape, X, flag f = inkscape -- "$@" -ext epub, has bk, flag f = alacritty -o "font.size=12" -e bk "$@" +ext epub, has bk, flag f = "$TERMCMD" -o "font.size=12" -e bk "$@" ext epub, has foliate, X, flag f = foliate -- "$@" ext epub, has calibre, X, flag f = calibre -- "$@" ext epub, has sigil, X, flag f = sigil "$@" -- cgit v1.2.3