summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-11-30 16:22:50 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-11-30 16:22:50 +0530
commitb0ba34d326bf3634f17709489b6d56a44f0b61c7 (patch)
treea897c285f6001f85261eee63150013825be9a8f7
parent7e19ac71731340dda02ffedde8b2f7cce5ecf73e (diff)
local-bin scripts
-rwxr-xr-x.local/bin/improveqrscan12
-rwxr-xr-x.local/bin/qrscan2
-rwxr-xr-x.local/bin/starttorr4
3 files changed, 5 insertions, 13 deletions
diff --git a/.local/bin/improveqrscan b/.local/bin/improveqrscan
deleted file mode 100755
index 9e84d6b..0000000
--- a/.local/bin/improveqrscan
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-if [ -z "$1" ]; then
- echo "Enter a valid image with QR code"
-else
- zbarimg -q $1 | cut -b 1-8 --complement | xclip -o -sel c;
-##use in command line argument like
-##qrscan "image" | xclip -sel c -o because
-## ERROR: target STRING not available
-## xclip -o outputs current clipboard...
-## xclip -i flag standard input
-fi
diff --git a/.local/bin/qrscan b/.local/bin/qrscan
index dcd3983..eb50f78 100755
--- a/.local/bin/qrscan
+++ b/.local/bin/qrscan
@@ -5,5 +5,5 @@ if [ -z "$1" ]; then
else
Link=$(zbarimg -q $1 | cut -b 1-8 --complement) &&
echo $Link | xclip -sel c
- notify-send "QR Link copied to clipboard" "$Link"
+ notify-send "qrscan" "QR Link copied to clipboard"
fi
diff --git a/.local/bin/starttorr b/.local/bin/starttorr
new file mode 100755
index 0000000..44ce3ac
--- /dev/null
+++ b/.local/bin/starttorr
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+sudo -A systemctl start jackett
+sudo -A systemctl start flaresolverr