aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/upfile
diff options
context:
space:
mode:
authorkrolxon <krolyxon@tutanota.com>2025-08-16 20:49:05 +0530
committerkrolxon <krolyxon@tutanota.com>2025-08-16 20:49:05 +0530
commitf3bdd21020b8e618433a06c1efc1cc665cb6839d (patch)
tree32427d47c079637b670a20b62e0339df0e248641 /.local/bin/upfile
first commit using stow
Diffstat (limited to '.local/bin/upfile')
-rwxr-xr-x.local/bin/upfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/.local/bin/upfile b/.local/bin/upfile
new file mode 100755
index 0000000..78c0321
--- /dev/null
+++ b/.local/bin/upfile
@@ -0,0 +1,13 @@
+#!/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 | xclip -sel c
+curl -F"file=@$file" 0.vern.cc | xclip -sel c
+notify-send "The url has been copied to your clipboard. $(xclip -sel c -o)"