hey rifle handles image urls the right way
This commit is contained in:
parent
9511d1942b
commit
13aef30648
@ -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 -- "$@"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user