From f102e6bbd1a2e1ccf6599f0cb74283468b6d5bf1 Mon Sep 17 00:00:00 2001 From: CoolnsX Date: Mon, 22 Nov 2021 23:12:33 +0530 Subject: [PATCH] update --- dmenu-5.0/dmenu | Bin 43488 -> 43488 bytes dmenu-5.0/dmenu.c | 4 ++-- dmenu-5.0/dmenu.o | Bin 36360 -> 36360 bytes tor-cli | 8 +++----- torrent | 10 +++++++++- 5 files changed, 14 insertions(+), 8 deletions(-) diff --git a/dmenu-5.0/dmenu b/dmenu-5.0/dmenu index e2c40686264d9ab94684728cc8c37ff038e2dfb6..b034d2b1164545b21ebad9ca5f5ea496db8ddbaa 100755 GIT binary patch delta 83 zcmaEGnd!l0rVSm;B6qY4+;~?_YSF#R>U@mhvD5;ql{Xj9Vb)}iU}9jfjbNI*SVteu UzNs@2&Mwr|fU!3(&~>N*0Qw3VPXGV_ delta 83 zcmaEGnd!l0rVSm;B3Hsa5><6fjx?;;*%P3)?c2&cPrk)-m^ImT7#SFBbr>fv*3pNv TZ|Y2hvkP@KVC>BcbRB8{-mMu1 diff --git a/dmenu-5.0/dmenu.c b/dmenu-5.0/dmenu.c index 4f9bf17..d7608cc 100644 --- a/dmenu-5.0/dmenu.c +++ b/dmenu-5.0/dmenu.c @@ -764,7 +764,7 @@ setup(void) if (INTERSECT(x, y, 1, 1, info[i])) break; - mw = MIN(MAX(max_textw() + promptw, 300), info[i].width); + mw = MIN(MAX(max_textw() + promptw, 600), info[i].width); x = info[i].x_org + ((info[i].width - mw) / 2); y = info[i].y_org + ((info[i].height - mh) / 2); XFree(info); @@ -774,7 +774,7 @@ setup(void) if (!XGetWindowAttributes(dpy, parentwin, &wa)) die("could not get embedding window attributes: 0x%lx", parentwin); - mw = MIN(MAX(max_textw() + promptw, 300), wa.width); + mw = MIN(MAX(max_textw() + promptw, 600), wa.width); x = (wa.width - mw) / 2; y = (wa.height - mh) / 2; } diff --git a/dmenu-5.0/dmenu.o b/dmenu-5.0/dmenu.o index 3a5a01c2b22b16c5f193100aa89ab2cfb834924c..acf6330a4cdd5d5cf28758d10b3e5dbd99bee44a 100644 GIT binary patch delta 58 tcmeB}!_+Z{X~SD__6Q~h2HOax$zR0v;cP95iE#EI2@M!~^G6BsQUKBj4)Fj0 delta 58 tcmeB}!_+Z{X~SD_b{$3r23sA*$zR0v;cP95iE#EI2@M!~^G6BsQUI%D4T%5% diff --git a/tor-cli b/tor-cli index 3e8eb6b..44a73f3 100755 --- a/tor-cli +++ b/tor-cli @@ -2,6 +2,8 @@ mkdir -p $HOME/.cache/pirokit +sleep 0.2 + if [ -z $1 ]; then query=$(echo "" | dmenu -p "Search Torrent: ") else @@ -59,11 +61,7 @@ fullURL="${baseurl}${url}/" # Requesting page for magnet link curl -s $fullURL -o $cachedir/tmp.html -#magnet=$(grep -Po "magnet:\?xt=urn:btih:[a-zA-Z0-9]*" $cachedir/tmp.html | head -n 1) magnet=$(grep -Po "magnet.*\" " $cachedir/tmp.html | tr -d \") -echo "$magnet" -xclip -sel clipboard "$magnet" -notify-send "Torrent:Rukk ja download ho rha hai" -aria2c -d MOVIES --seed-time=0 "$magnet" && notify-send "Torrent:cheecha download hogyi" || notify-send -u critical "Torrent:cheecha error!!" +$HOME/repos_scripts/torrent "$magnet" diff --git a/torrent b/torrent index 455d491..ac18dd4 100755 --- a/torrent +++ b/torrent @@ -1,3 +1,11 @@ #!/bin/sh -aria2c -d MOVIES --seed-time=0 "$(xclip -out clipboard)" +if [ -z "$*" ]; then + magnet="$(xclip -out clipboard)" +else + magnet=$* +fi + +notify-send "Torrent:Rukk ja Download ho rha hai" +echo "$magnet" +aria2c -d MOVIES --seed-time=0 "$magnet" && notify-send "Torrent:cheecha download hogyi" || notify-send -u critical "Torrent:cheecha error!!"