aboutsummaryrefslogtreecommitdiff
path: root/showURLimage.sh
blob: 2d5b485a984819195d0517934a210965e585557b (plain)
1
2
3
4
5
6
7
#!/bin/sh

# Downloads an url to /tmp and opens it with sxiv.

filename="/tmp/showURLimage$(date +%H%M%S)"
curl "$1" > "$filename"
sxiv -b -N "sxivfloat" "$filename" || notify-send "No image found at $1"