diff --git a/.config/lf/scope b/.config/lf/scope index 180c2947..881d66e9 100755 --- a/.config/lf/scope +++ b/.config/lf/scope @@ -21,7 +21,7 @@ ifub() { # an image appears in multiple places across the machine, it will not have to # be regenerated once seen. -case "$(file --dereference --brief --mime-type -- "$1")" in +case "$(xdg-mime query filetype "$1")" in image/*) image "$1" "$2" "$3" "$4" "$5" "$1" ;; text/html) lynx -width="$4" -display_charset=utf-8 -dump "$1" ;; text/troff) man ./ "$1" | col -b ;;