From b0ba34d326bf3634f17709489b6d56a44f0b61c7 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Wed, 30 Nov 2022 16:22:50 +0530 Subject: local-bin scripts --- .local/bin/improveqrscan | 12 ------------ .local/bin/qrscan | 2 +- .local/bin/starttorr | 4 ++++ 3 files changed, 5 insertions(+), 13 deletions(-) delete mode 100755 .local/bin/improveqrscan create mode 100755 .local/bin/starttorr 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 -- cgit v1.2.3