hey rifle handles image urls the right way

This commit is contained in:
Felix Van der Jeugt 2015-11-24 18:10:46 +01:00
parent 9511d1942b
commit 13aef30648
2 changed files with 2 additions and 4 deletions

View File

@ -162,6 +162,7 @@ ext djvu, has atril, X, flag f = atril -- "$@"
#-------------------------------------------
# Image Viewing:
#-------------------------------------------
mime gif$, has mpv, X, flag f = mpv -loop -- "$@"
mime ^image, has sxiv, X, flag f = sxiv -- "$@"
mime ^image, has feh, X, flag f = feh -- "$@"
mime ^image, has mirage, X, flag f = mirage -- "$@"

View File

@ -1,5 +1,2 @@
#!/bin/bash
curl -IL $1 \
| grep Content-Type \
| tail -n 1 \
| grep image && feh $1 || xdg-open $1
rifle "$1" | grep 'cannot open' && xdg-open "$1"