mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2025-12-20 07:15:20 +05:30
update
This commit is contained in:
BIN
dmenu-5.0/dmenu
BIN
dmenu-5.0/dmenu
Binary file not shown.
@@ -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;
|
||||
}
|
||||
|
||||
Binary file not shown.
8
tor-cli
8
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"
|
||||
|
||||
|
||||
10
torrent
10
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!!"
|
||||
|
||||
Reference in New Issue
Block a user