From 5753b1792b3b1378e7195041507966d738399f39 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Mon, 4 May 2020 23:37:04 +0200 Subject: [PATCH] Add aria2 config --- dotfiles/torrent.org | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/dotfiles/torrent.org b/dotfiles/torrent.org index 46b69bd..2daf8b2 100644 --- a/dotfiles/torrent.org +++ b/dotfiles/torrent.org @@ -64,3 +64,32 @@ file_prio_normal = bg:white,fg:black file_prio_low = bg:yellow,fg:black file_prio_off = bg:blue,fg:black #+end_src +* Aria2 +** Config +#+begin_src conf :comments none :mkdirp yes :tangle ~/.config/aria2/aria2.conf :noweb no-export + daemon=true + + dir=/home/thomas/Downloads + enable-rpc=true + rpc-listen-all=true + http-user=dehaeze.thomas@gmail.com + http-passwd=<> + on-download-start="~/.config/aria2/download-start.sh" + on-download-complete="~/.config/aria2/download-complete.sh" + on-download-error="~/.config/aria2/download-error.sh" +#+end_src + +** Download Start Script +#+begin_src bash :tangle ~/.config/aria2/download-start.sh :comments both :mkdirp yes :shebang "#!/usr/bin/env bash" + dunstify "DL Started" "$(basename $3 2> /dev/null)" +#+end_src + +** Download Complete Script +#+begin_src bash :tangle ~/.config/aria2/download-complete.sh :comments both :mkdirp yes :shebang "#!/usr/bin/env bash" + dunstify "DL Completed" "$(basename $3 2> /dev/null)" +#+end_src + +** Download Error Script +#+begin_src bash :tangle ~/.config/aria2/download-error.sh :comments both :mkdirp yes :shebang "#!/usr/bin/env bash" + dunstify --urgency=critical "DL Failed" "$(basename $3 2> /dev/null)" +#+end_src