sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 653e7441e87aaf8d951281481d9de4dc9e54bddb
parent 909323f9e65f372215e5098cc999fd9d4bef430d
Author: Thuban <thuban@singularity.fr>
Date:   Sat,  1 Jun 2013 11:27:54 +0200

aria2 as download manager

Diffstat:
Asurf.suckless.org/patches/aria2.md | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/surf.suckless.org/patches/aria2.md b/surf.suckless.org/patches/aria2.md @@ -0,0 +1,15 @@ +# aria2c + +To use aria2 instead of curl as default download manager, just replace +the DOWNLOAD function like this in config.h: + + /* DOWNLOAD(URI, referer) */ + #define DOWNLOAD(d, r) { \ + .v = (char *[]){ "/bin/sh", "-c", \ + "cd ~/Telechargements;"\ + "st -e /bin/sh -c \"aria2c -U '$1'" \ + " --referer '$2' --load-cookies $3 --save-cookies $3 '$0';" \ + " sleep 3;\"", \ + d, useragent, r, cookiefile, NULL \ + } \ + }