From 4e7a44f10e553ed712a5f5f84c246e88f083513a Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Tue, 5 May 2020 00:00:45 +0200 Subject: [PATCH] Add Download script with aria2 on qutebrowser --- dotfiles/qutebrowser.org | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dotfiles/qutebrowser.org b/dotfiles/qutebrowser.org index d6982ef..ee3eaec 100644 --- a/dotfiles/qutebrowser.org +++ b/dotfiles/qutebrowser.org @@ -280,6 +280,11 @@ Add page to Bookmarks using =buku= config.bind(',B', 'spawn --userscript ~/.config/qutebrowser/userscripts/buku-rofi.sh') #+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= #+begin_src python config.bind(',o', 'spawn ~/.local/bin/bukurun') @@ -537,3 +542,7 @@ Send to Emacs #+begin_src bash :tangle ~/.config/qutebrowser/userscripts/buku-add.sh buku --add $QUTE_URL --title "$QUTE_TITLE" && dunstify "Buku" "📑 Bookmark Added" #+end_src +** Download with aria2c +#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/aria2c-add.sh + aria2p --secret "$(pass aria2c/thomas)" add "$1" +#+end_src