From 76986701eca30c36649fa8111358a45e2c88ff55 Mon Sep 17 00:00:00 2001 From: shmibs Date: Mon, 1 Sep 2014 11:33:59 -0700 Subject: theme update time! --- .config/ranger/rifle.conf | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) (limited to '.config/ranger') diff --git a/.config/ranger/rifle.conf b/.config/ranger/rifle.conf index ee189c7..c1291d9 100644 --- a/.config/ranger/rifle.conf +++ b/.config/ranger/rifle.conf @@ -74,11 +74,14 @@ ext x?html?, has w3m, terminal = w3m "$@" #------------------------------------------- # Define the "editor" for text files as first action mime ^text, label editor = "$EDITOR" -- "$@" -!mime ^text, label editor, ext xml|csv|tex|py|pl|rb|sh|php = "$EDITOR" -- "$@" +mime ^text, has urxvt, X, flag f = "urxvt" "-e" "$EDITOR" "$@" +!mime ^text, ext xml|csv|tex|py|pl|rb|sh|php = "$EDITOR" -- "$@" +!mime ^text, ext xml|csv|tex|py|pl|rb|sh|php, has urxvt, X, flag f = "urxvt" "-e" "$EDITOR" "$@" ext 1 = man "$1" ext exe = wine "$1" name ^[mM]akefile$ = make +name ^[mM]akefile$ = make clean #-------------------------------------------- # Code @@ -110,8 +113,7 @@ mime ^video, terminal, !X, has mplayer = mplayer -- "$@" #------------------------------------------- # Image Viewing: #------------------------------------------- -mime ^image, has sxiv, X, flag f = sxiv -- "$@" -mime ^image, has feh, X, flag f = feh -- "$@" +mime ^image, has sxiv, X, flag f = sxiv -a "$@" mime ^image, has gimp, X, flag f = gimp -- "$@" ext xcf, X, flag f = gimp -- "$@" @@ -132,15 +134,15 @@ ext od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric|rtf, has libreoffice, X, fla # Archives #------------------------------------------- # This requires atool -ext cbr|cbz, has comix, X, flag f = comix -- "$@" -ext iso, has udevil = udevil mount -- "$@" -ext iso, has udevil = udevil mount -- "$@" +ext cbr|cbz, has mcomix, X, flag f = mcomix -- "$@" +ext iso, has udevil = udevil mount "$@" +ext iso, has udevil = udevil mount "$@" ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has als = als -- "$@" | "$PAGER" ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has als = als -- "$@" | "$PAGER" ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has aunpack = aunpack -- "$@" ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has aunpack = aunpack -- "$@" -ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has comix, X, flag f = comix -- "$@" -ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has comix, X, flag f = comix -- "$@" +ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has mcomix, X, flag f = mcomix -- "$@" +ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has mcomix, X, flag f = mcomix -- "$@" # Fallback: ext tar|gz, has tar = tar vvtf "$@" | "$PAGER" @@ -159,14 +161,6 @@ ext 8xp|8xk|8xv|8xu, has tilp = tilp --no-gui "$@" ext s[wmf]c, has snes9x-gtk, X flag f = snes9x-gtk "$1" ext nes|gb|gb[ca], has mednafen, X, flag f = mednafen "$1" -#------------------------------------------- -# Misc -#------------------------------------------- -label wallpaper, number 11, mime ^image, X = feh --bg-scale "$1" -label wallpaper, number 12, mime ^image, X = feh --bg-tile "$1" -label wallpaper, number 13, mime ^image, X = feh --bg-center "$1" -label wallpaper, number 14, mime ^image, X = feh --bg-fill "$1" - # Define the editor for non-text files as last action - !mime ^text, !ext xml|csv|tex|py|pl|rb|sh|php = ask label editor, !mime ^text, !ext xml|csv|tex|py|pl|rb|sh|php = "$EDITOR" -- "$@" +label editor, !mime ^text, !ext xml|csv|tex|py|pl|rb|sh|php, has urxvt, X, flag f = "urxvt" "-e" "$EDITOR" "$@" -- cgit v1.2.3