Add aria2 config
This commit is contained in:
parent
3d77142517
commit
54403f487a
@ -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=<<get-password(passname="1fichier.com/dehaeze.thomas@gmail.com")>>
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user