diff options
Diffstat (limited to 'bin/urlImage')
| -rwxr-xr-x | bin/urlImage | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/urlImage b/bin/urlImage new file mode 100755 index 0000000..21ff6f5 --- /dev/null +++ b/bin/urlImage @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +# Pipe images from URLs into sxiv + +# get image extension +EXT="${1##*.}" + +# download it into a tmp file +wget "$1" -O /tmp/img.$EXT + +# open in sxiv +sxiv /tmp/img.$EXT |
