From 265c6dc05fd92d41092ab3fd94bc88ff7ce8ba55 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Fri, 13 May 2022 15:46:34 +0200 Subject: [PATCH] Remove html-to-pdf script as :print -pdf works fine --- qutebrowser.org | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/qutebrowser.org b/qutebrowser.org index 9126d0f..623fa3d 100644 --- a/qutebrowser.org +++ b/qutebrowser.org @@ -360,9 +360,6 @@ config.bind(';R', 'Org_Capture_hint') Screenshot of webpage to png #+begin_src python -c.aliases['Save_PDF'] = 'spawn --userscript html-to-pdf.sh' -config.bind(',s', 'Save_PDF') - c.aliases['Save_PNG'] = 'spawn --userscript html-to-png.sh' config.bind(',S', 'Save_PNG') #+end_src @@ -689,17 +686,6 @@ if [ -n "filename" ]; then fi #+end_src -** Save to PDF -#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/html-to-pdf.sh -filename=$(rofi -p "filename" -dmenu -lines 1) - -if [ -n "$filename" ]; then - cd ~/Pictures/ && \ - percollate pdf --css "@page { size: A4 portrait }" --output "$filename.pdf" "$QUTE_URL" && \ - notify-send "Percollate" "Successfully saved to pdf" -fi -#+end_src - ** Get OTP number #+begin_src bash :tangle ~/.config/qutebrowser/userscripts/get-otp.sh passname=$(ls ~/.password-store/totp-* | xargs -n 1 basename | sed -e 's/\..*$//' | rofi -p "TOPT" -dmenu)