summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/shell/aliasrc2
-rwxr-xr-x.scripts/null10
-rwxr-xr-x.scripts/wifi-captive-login3
3 files changed, 13 insertions, 2 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
index b12a8c6..3ea8341 100644
--- a/.config/shell/aliasrc
+++ b/.config/shell/aliasrc
@@ -13,7 +13,7 @@ alias \
r="ranger" \
sr="sudo ranger" \
t="teams -no-sandbox" \
- w="whatsapp-nativefier"
+ w="whatsapp-nativefier" \
sp="spotify" \
jds="export _JAVA_AWT_WM_NONREPARENTING=1" \
jd="jdownloader" \
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
diff --git a/.scripts/wifi-captive-login b/.scripts/wifi-captive-login
new file mode 100755
index 0000000..2603009
--- /dev/null
+++ b/.scripts/wifi-captive-login
@@ -0,0 +1,3 @@
+#!/bin/sh
+login=$(netstat -nr | sed '3p;d' | cut -d " " -f 10)
+st -e librewolf $login