Remove html-to-pdf script as :print -pdf works fine

This commit is contained in:
Thomas Dehaeze 2022-05-13 15:46:34 +02:00
parent 752d6a642e
commit 265c6dc05f

View File

@ -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)