dotfiles-x11.localbinupfile
| 1 | #!/bin/sh |
| 2 | |
| 3 | if [ -n "$1" ]; then |
| 4 | file=$1 |
| 5 | else |
| 6 | file=$(find . -maxdepth 2 -type f | fzf) |
| 7 | fi |
| 8 | |
| 9 | [ -z "$file" ] && exit |
| 10 | |
| 11 | # curl -F"file=@$file" 0x0.st | xclip -sel c |
| 12 | curl -F"file=@$file" 0.tildevarsh.in | xclip -sel c |
| 13 | notify-send "The url has been copied to your clipboard. $(xclip -sel c -o)" |