1
0
Fork 0
This commit is contained in:
Luca Bilke 2024-06-03 22:31:23 +02:00
parent 3383640dda
commit e2a29fac4f
2 changed files with 9 additions and 8 deletions

View file

@ -113,6 +113,10 @@ mimetest() {
run lynx -dump "$f"
exit 1
;;
*text*)
text
exit
;;
*) return 1 ;;
esac
}
@ -127,11 +131,6 @@ if command -v gio 1>/dev/null 2>&1; then
mimetest "$giorun" && exit 1
fi
case "$(file -b "$f")" in
*text*) text ;;
*)
printf "%b" "\$(file --mime-type)\t\t\t : $filerun\n"
[ -n "$giorun" ] && printf "%b" "\$(gio info)\t\t\t\t : $giorun\n"
mediainfo "$1" | head -n -2 | grep -v -e "Complete name" -e "General"
;;
esac
printf "%b" "\$(file --mime-type)\t\t\t : $filerun\n"
[ -n "$giorun" ] && printf "%b" "\$(gio info)\t\t\t\t : $giorun\n"
mediainfo "$1" | head -n -2 | grep -v -e "Complete name" -e "General"

2
.gitignore vendored
View file

@ -3,3 +3,5 @@
.config/zsh/configs/host-setup
.local/share/service
.config/nvim/lazyvim.json
.config/nvim/lua/config/secrets.lua
.local/share/xkb/compiled/keymap