Debug notification scripts

This commit is contained in:
Thomas Dehaeze 2020-05-04 23:59:35 +02:00
parent 54403f487a
commit e1e7877c3c

View File

@ -65,31 +65,34 @@ file_prio_low = bg:yellow,fg:black
file_prio_off = bg:blue,fg:black file_prio_off = bg:blue,fg:black
#+end_src #+end_src
* Aria2 * Aria2
** Config ** Aria2c Config
#+begin_src conf :comments none :mkdirp yes :tangle ~/.config/aria2/aria2.conf :noweb no-export #+begin_src conf :comments none :mkdirp yes :tangle ~/.config/aria2/aria2.conf :noweb no-export
continue
daemon=true daemon=true
dir=/home/thomas/Downloads dir=/home/thomas/Downloads
max-connection-per-server=4
max-concurrent-downloads=3
enable-rpc=true enable-rpc=true
rpc-listen-all=true rpc-listen-all=true
rpc-secret=<<get-password(passname="aria2c/thomas")>>
http-user=dehaeze.thomas@gmail.com http-user=dehaeze.thomas@gmail.com
http-passwd=<<get-password(passname="1fichier.com/dehaeze.thomas@gmail.com")>> http-passwd=<<get-password(passname="1fichier.com/dehaeze.thomas@gmail.com")>>
on-download-start="~/.config/aria2/download-start.sh" on-download-start=/home/thomas/.config/aria2/download-start.sh
on-download-complete="~/.config/aria2/download-complete.sh" on-download-complete=/home/thomas/.config/aria2/download-complete.sh
on-download-error="~/.config/aria2/download-error.sh" on-download-error=/home/thomas/.config/aria2/download-error.sh
#+end_src #+end_src
** Download Start Script ** Download Start Script
#+begin_src bash :tangle ~/.config/aria2/download-start.sh :comments both :mkdirp yes :shebang "#!/usr/bin/env bash" #+begin_src bash :tangle ~/.config/aria2/download-start.sh :comments both :mkdirp yes :shebang "#!/bin/bash"
dunstify "DL Started" "$(basename $3 2> /dev/null)" dunstify "DL Started" "$(basename \"$3\" 2> /dev/null)"
#+end_src #+end_src
** Download Complete Script ** Download Complete Script
#+begin_src bash :tangle ~/.config/aria2/download-complete.sh :comments both :mkdirp yes :shebang "#!/usr/bin/env bash" #+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 #+end_src
** Download Error Script ** Download Error Script
#+begin_src bash :tangle ~/.config/aria2/download-error.sh :comments both :mkdirp yes :shebang "#!/usr/bin/env bash" #+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 #+end_src