summaryrefslogtreecommitdiff
path: root/.scripts/null
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-05-18 15:15:30 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-05-18 15:15:30 +0530
commit4df17a688ba54d710a1d46ee47cb65b5c9e75764 (patch)
tree5b4515b82ae88b8ebfb16a0556e4368c02087a69 /.scripts/null
parent797e08333da93e8a37f496810a55a59cf83b2c08 (diff)
modified aliasrc and null script to accept input and primitive-captive-portal-wifi script
Diffstat (limited to '.scripts/null')
-rwxr-xr-x.scripts/null10
1 files changed, 9 insertions, 1 deletions
diff --git a/.scripts/null b/.scripts/null
index ac8b1ed..172dc9e 100755
--- a/.scripts/null
+++ b/.scripts/null
@@ -1 +1,9 @@
-curl -F"file=@$(find $HOME -type f | dmenu -p "Choose file to be uploaded to null server 0x0.st:" -l 15)" https://0x0.st | xclip -sel c
+#!/bin/sh
+
+if [ -z "$1" ]; then
+ curl -F"file=@$(find $HOME -type f | dmenu -p "Choose file to be uploaded to null server 0x0.st:" -l 15)" https://0x0.st | xclip -sel c
+
+else
+ fileup="$1"
+ curl -F"file=@$fileup" https://0x0.st | xclip -sel c && dunstify -u normal -i fileup "File uploaded"
+fi