Add Download script with aria2 on qutebrowser

This commit is contained in:
Thomas Dehaeze 2020-05-05 00:00:45 +02:00
parent a631912084
commit 4e7a44f10e

View File

@ -280,6 +280,11 @@ Add page to Bookmarks using =buku=
config.bind(',B', 'spawn --userscript ~/.config/qutebrowser/userscripts/buku-rofi.sh') config.bind(',B', 'spawn --userscript ~/.config/qutebrowser/userscripts/buku-rofi.sh')
#+end_src #+end_src
Download with =aria2c=
#+begin_src python
config.bind(',d', 'hint links spawn --userscript ~/.config/qutebrowser/userscripts/aria2c-add.sh {hint-url}')
#+end_src
Open bookmark using =buku= Open bookmark using =buku=
#+begin_src python #+begin_src python
config.bind(',o', 'spawn ~/.local/bin/bukurun') config.bind(',o', 'spawn ~/.local/bin/bukurun')
@ -537,3 +542,7 @@ Send to Emacs
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/buku-add.sh #+begin_src bash :tangle ~/.config/qutebrowser/userscripts/buku-add.sh
buku --add $QUTE_URL --title "$QUTE_TITLE" && dunstify "Buku" "📑 Bookmark Added" buku --add $QUTE_URL --title "$QUTE_TITLE" && dunstify "Buku" "📑 Bookmark Added"
#+end_src #+end_src
** Download with aria2c
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/aria2c-add.sh
aria2p --secret "$(pass aria2c/thomas)" add "$1"
#+end_src