From a631912084504714c7bbc041226e35afb355d59a Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Mon, 4 May 2020 23:59:35 +0200 Subject: [PATCH] Debug notification scripts --- dotfiles/torrent.org | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/dotfiles/torrent.org b/dotfiles/torrent.org index 2daf8b2..200d9c3 100644 --- a/dotfiles/torrent.org +++ b/dotfiles/torrent.org @@ -65,31 +65,34 @@ file_prio_low = bg:yellow,fg:black file_prio_off = bg:blue,fg:black #+end_src * Aria2 -** Config +** Aria2c Config #+begin_src conf :comments none :mkdirp yes :tangle ~/.config/aria2/aria2.conf :noweb no-export + continue daemon=true - dir=/home/thomas/Downloads + max-connection-per-server=4 + max-concurrent-downloads=3 enable-rpc=true rpc-listen-all=true + rpc-secret=<> 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" + on-download-start=/home/thomas/.config/aria2/download-start.sh + on-download-complete=/home/thomas/.config/aria2/download-complete.sh + on-download-error=/home/thomas/.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)" +#+begin_src bash :tangle ~/.config/aria2/download-start.sh :comments both :mkdirp yes :shebang "#!/bin/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)" + 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)" + dunstify --urgency=critical "DL Failed" "$(basename \"$3\" 2> /dev/null)" #+end_src