diff options
author | Freya Murphy <freya@freyacat.org> | 2024-01-22 18:51:58 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-01-22 18:51:58 -0500 |
commit | 29c853a0273fdfe93322fa8b9360afce1af4794a (patch) | |
tree | d8e0ba81a350c8457955ae2f924bc5e28b670861 /.config/ranger/rifle.conf | |
parent | remove ymls (diff) | |
download | dotfiles-arch-29c853a0273fdfe93322fa8b9360afce1af4794a.tar.gz dotfiles-arch-29c853a0273fdfe93322fa8b9360afce1af4794a.tar.bz2 dotfiles-arch-29c853a0273fdfe93322fa8b9360afce1af4794a.zip |
add new config
Diffstat (limited to '.config/ranger/rifle.conf')
-rw-r--r-- | .config/ranger/rifle.conf | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.config/ranger/rifle.conf b/.config/ranger/rifle.conf new file mode 100644 index 0000000..c5ae654 --- /dev/null +++ b/.config/ranger/rifle.conf @@ -0,0 +1,44 @@ +# vim: ft=cfg + +# web +ext x?html?, has librewolf, X, flag f = librewolf -- "$@" +ext x?html?, has firefox, X, flag f = firefox -- "$@" + +# editor +mime ^text, label editor = ${VISUAL:-$EDITOR} -- "$@" +!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@" + +# misc +ext 1 = man "$1" +ext exe = wine "$1" + +# scripts +ext py = python3 -- "$1" +ext pl = perl -- "$1" +ext rb = ruby -- "$1" +ext js = node -- "$1" +ext sh = sh -- "$1" +ext php = php -- "$1" + +# media +mime ^audio|ogg$, terminal, has mpv = mpv -- "$@" +mime ^video, has mpv, X, flag f = mpv -- "$@" + +# documents +ext pdf, has zathura, X, flag f = zathura -- "$@" +ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f = libreoffice "$@" + +# images +mime ^image, has imv, X, flag f = imv -- "$@" +ext xcf, X, flag f = gimp -- "$@" + +# fallbacks +mime ^ranger/x-terminal-emulator, has kitty = kitty -- "$@" +mime ^ranger/x-terminal-emulator, has alacritty = alacritty -e "$@" + +# xdg-open +label open, has xdg-open = xdg-open -- "$@" +label open, has open = open -- "$@" + +# execute +mime application/x-executable = "$1" |