Krolyxon
Commit bf696a1

Branches

Refs →

dotfiles-x11.localbinupfile

12 lines · 236 B · Bourne Again Shell (bash)

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