From 94c1018c1eb6e45532b36c3395f6375a2c3de951 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Wed, 11 Nov 2020 11:13:40 +0100 Subject: [PATCH] Change programs to open extensions --- arch-config/.config/ranger/rifle.conf | 30 +++++++++++++++++---------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/arch-config/.config/ranger/rifle.conf b/arch-config/.config/ranger/rifle.conf index d9bc175a..f60c749c 100644 --- a/arch-config/.config/ranger/rifle.conf +++ b/arch-config/.config/ranger/rifle.conf @@ -66,7 +66,7 @@ ext x?html?, has uzbl-tabbed, X, flag f = uzbl-tabbed -- "$@" ext x?html?, has uzbl-browser, X, flag f = uzbl-browser -- "$@" ext x?html?, has uzbl-core, X, flag f = uzbl-core -- "$@" ext x?html?, has midori, X, flag f = midori -- "$@" -ext x?html?, has opera, X, flag f = opera -- "$@" +#ext x?html?, has opera, X, flag f = opera -- "$@" ext x?html?, has firefox, X, flag f = firefox -- "$@" ext x?html?, has seamonkey, X, flag f = seamonkey -- "$@" ext x?html?, has iceweasel, X, flag f = iceweasel -- "$@" @@ -155,13 +155,21 @@ ext pdf, has epdfview, X, flag f = epdfview -- "$@" ext pdf, has qpdfview, X, flag f = qpdfview "$@" ext pdf, has open, X, flag f = open "$@" -ext docx?, has catdoc, terminal = catdoc -- "$@" | "$PAGER" +#ext docx?, has catdoc, terminal = catdoc -- "$@" | "$PAGER" -ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has gnumeric, X, flag f = gnumeric -- "$@" -ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has kspread, X, flag f = kspread -- "$@" +# use wps office to open ms-office documents +ext docx?, has wps, X, flag f = wps -- "$@" +ext xlsx?, has wps, X, flag f = et -- "$@" +ext pptx?, has wps, X, flag f = wpp -- "$@" + +#ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has gnumeric, X, flag f = gnumeric -- "$@" +#ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has kspread, X, flag f = kspread -- "$@" ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f = libreoffice "$@" -ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has soffice, X, flag f = soffice "$@" -ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has ooffice, X, flag f = ooffice "$@" +#ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has soffice, X, flag f = soffice "$@" +#ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has ooffice, X, flag f = ooffice "$@" + +# open ott with libreoffice +ext ott, has libreoffice, X, flag f = libreoffice "$@" ext djvu, has zathura,X, flag f = zathura -- "$@" ext djvu, has evince, X, flag f = evince -- "$@" @@ -232,11 +240,11 @@ mime ^font, has fontforge, X, flag f = fontforge "$@" # if you install a rare terminal emulator, you probably use it. # gnome-terminal/konsole/xterm on the other hand are often installed as part of # a desktop environment or as fallback terminal emulators. -mime ^ranger/x-terminal-emulator, has terminology = terminology -e "$@" -mime ^ranger/x-terminal-emulator, has kitty = kitty -- "$@" -mime ^ranger/x-terminal-emulator, has alacritty = alacritty -e "$@" -mime ^ranger/x-terminal-emulator, has sakura = sakura -e "$@" -mime ^ranger/x-terminal-emulator, has lilyterm = lilyterm -e "$@" +#mime ^ranger/x-terminal-emulator, has terminology = terminology -e "$@" +#mime ^ranger/x-terminal-emulator, has kitty = kitty -- "$@" +#mime ^ranger/x-terminal-emulator, has alacritty = alacritty -e "$@" +#mime ^ranger/x-terminal-emulator, has sakura = sakura -e "$@" +#mime ^ranger/x-terminal-emulator, has lilyterm = lilyterm -e "$@" #mime ^ranger/x-terminal-emulator, has cool-retro-term = cool-retro-term -e "$@" mime ^ranger/x-terminal-emulator, has termite = termite -x '"$@"' #mime ^ranger/x-terminal-emulator, has yakuake = yakuake -e "$@"