Krolyxon
Commit 2d6af20

Branches

Refs →

aurora.localbinupfile

12 lines · 223 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 | wl-copy
12notify-send "The url has been copied to your clipboard. $(wl-paste)"