sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

index.md (425B)


      1 # aria2c
      2 
      3 To use aria2 instead of curl as default download manager, just replace
      4 the DOWNLOAD function like this in config.h:
      5 
      6 	/* DOWNLOAD(URI, referer) */
      7 	#define DOWNLOAD(d, r) { \
      8 		.v = (char *[]){ "/bin/sh", "-c", \
      9 			"cd ~/Telechargements;"\
     10 			"st -e /bin/sh -c \"aria2c -U '$1'" \
     11 			" --referer '$2' --load-cookies $3 --save-cookies $3 '$0';" \
     12 			" sleep 3;\"", \
     13 			d, useragent, r, cookiefile, NULL \
     14 		} \
     15 	}