From a5795ebe92e8b7f74a58178b0f23374e90596351 Mon Sep 17 00:00:00 2001 From: CoolnsX Date: Sun, 11 Dec 2022 13:17:19 +0530 Subject: [PATCH] chore: using $TERMINAL variable in script --- ani-new | 4 ++-- rss | 2 +- speedtest | Bin 2535256 -> 2535261 bytes tor-bay | 2 +- tor-cli | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ani-new b/ani-new index 1ea27f5..3ade5e0 100755 --- a/ani-new +++ b/ani-new @@ -8,9 +8,9 @@ down () { notify-send -i "$icon_dir/panel/jdownloader-indicator.svg" "Downloading $url" -r $tmp case $2 in *m3u*) - foot -e ffmpeg -loglevel error -stats -referer "$1" -user_agent "$agent" -i "$2" -c copy "$url.mp4" && notify-send "Episode Downloaded $url" -r $tmp || (notify-send -u "critical" "Downloading failed $url" -r $tmp && exit 0);; + $TERMINAL -e ffmpeg -loglevel error -stats -referer "$1" -user_agent "$agent" -i "$2" -c copy "$url.mp4" && notify-send "Episode Downloaded $url" -r $tmp || (notify-send -u "critical" "Downloading failed $url" -r $tmp && exit 0);; *) - foot -e aria2c -U "$agent" --check-certificate=false --summary-interval=0 -x 16 -s 16 --referer="$1" "$2" -o "$url.mp4" --download-result=hide && notify-send "Episode Downloaded $url" -r $tmp || (notify-send -u "critical" "Downloading failed $url" -r $tmp && exit 0);; + $TERMINAL -e aria2c -U "$agent" --check-certificate=false --summary-interval=0 -x 16 -s 16 --referer="$1" "$2" -o "$url.mp4" --download-result=hide && notify-send "Episode Downloaded $url" -r $tmp || (notify-send -u "critical" "Downloading failed $url" -r $tmp && exit 0);; esac exit 0 } diff --git a/rss b/rss index 5205c5e..54bc02e 100755 --- a/rss +++ b/rss @@ -6,4 +6,4 @@ name=$(printf "%s" "$data" | sed -nE 's_^.*Please\] (.*).*size>(.*)(.*$id.*).*_\1_p" | sed 's/amp;//g') -setsid -f foot -e $HOME/repos_scripts/torrent "$magnet" +setsid -f $TERMINAL -e $HOME/repos_scripts/torrent "$magnet" diff --git a/speedtest b/speedtest index 37e33b0bc3beaf87bfcf39f7c8893bb3a573b2dd..8c236dd535ce5d7e9f75f9d7f6315a9651c5929d 100755 GIT binary patch delta 117 zcmca{Zx-WSAZ}=3Y+-6)ZeeL*ZDDI+Z{cX+Y~gC*ZsBR+ZQ*O-ZxLt_Y!PY^ZV_n_ zZ4qk`Z;@z`Y>{e_Zjsp{d;K-1N{DNaucx1*Py6lHvOp{c#PUF_0K|$wtOUf$K&-O; J_G{JJ!vF!pF_-`V delta 112 zcmWN=ISztQ6hP6SA7qxn2?b@`8Z8a2iN#IWgX=JH0WLxt4gKGQ?" | cut -d" " -f3-) [ -z "$sel" ] && notify-send -u critical "No Torrent Selected" -r $tmp && exit 0 || notify-send "Selected $sel" -r $tmp magnet="magnet:?xt=urn:btih:$(printf "%s" "$data" | sed -nE 's/.*name":"(.*)","info_hash":"(.*)",.*leech.*/\2\t\1/p' | sed -n "s/\t$sel//p")" -setsid -f foot -e $HOME/repos_scripts/torrent "$magnet" +setsid -f $TERMINAL -e $HOME/repos_scripts/torrent "$magnet" diff --git a/tor-cli b/tor-cli index 9fae651..e96b136 100755 --- a/tor-cli +++ b/tor-cli @@ -34,4 +34,4 @@ url=$(head -n $LINE $cachedir/links.bw | tail -n +$LINE) # Requesting page for magnet link magnet=$(curl -s "${baseurl}${url}" | sed -nE 's/.*class="(.*)" href="([^"]*)" .*/\2/p') -setsid -f foot -e $HOME/repos_scripts/torrent "$magnet" +setsid -f $TERMINAL -e $HOME/repos_scripts/torrent "$magnet"