aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/imgurl
blob: 2a2cb37e1cfa3bf3c499bfb682a975eddac7e4f9 (plain)
1
2
3
4
5
6
#!/bin/sh

[ -z "$1" ] && exit

setsid curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///")" && sxiv -a "/tmp/$(echo "$1" | sed "s/.*\///")"  >/dev/null 2>&1 &