aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/upfile
blob: fd6cd3385f3135d850d478320fb95a731d44144d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

if [ -n "$1" ]; then
	file=$1
else
	file=$(find . -maxdepth 2 -type f | fzf)
fi

[ -z "$file" ] && exit

curl -F"file=@$file" 0x0.st | wl-copy
notify-send "The url has been copied to your clipboard. $(wl-paste)"