Add screenshot binding
This commit is contained in:
parent
7e5284b53f
commit
39785ddc90
@ -299,6 +299,11 @@ Org Capture
|
|||||||
config.bind(',R', 'hint links userscript ~/.config/qutebrowser/userscripts/org-capture.sh')
|
config.bind(',R', 'hint links userscript ~/.config/qutebrowser/userscripts/org-capture.sh')
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
Screenshot of webpage to png
|
||||||
|
#+begin_src python
|
||||||
|
config.bind(',s', 'spawn --userscript ~/.config/qutebrowser/userscripts/html-to-png.sh')
|
||||||
|
#+end_src
|
||||||
|
|
||||||
Download a torrent
|
Download a torrent
|
||||||
#+begin_src python
|
#+begin_src python
|
||||||
config.bind(',t', 'hint links spawn torrent-add {hint-url}')
|
config.bind(',t', 'hint links spawn torrent-add {hint-url}')
|
||||||
@ -326,7 +331,6 @@ Org Roam Entry for the current page
|
|||||||
:END:
|
:END:
|
||||||
|
|
||||||
** Create a new password
|
** Create a new password
|
||||||
|
|
||||||
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/add-passowrd.sh
|
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/add-passowrd.sh
|
||||||
url=$(echo "$QUTE_URL" | awk -F[/:] '{print $4}' | rofi -p "URL" -dmenu -lines 1)
|
url=$(echo "$QUTE_URL" | awk -F[/:] '{print $4}' | rofi -p "URL" -dmenu -lines 1)
|
||||||
username=$(echo -e "dehaeze.thomas@gmail.com\nthomas.dehaeze@esrf.fr\ntdehaeze" | rofi -p "Username" -dmenu -lines 5)
|
username=$(echo -e "dehaeze.thomas@gmail.com\nthomas.dehaeze@esrf.fr\ntdehaeze" | rofi -p "Username" -dmenu -lines 5)
|
||||||
@ -343,7 +347,6 @@ Org Roam Entry for the current page
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Download Youtube Video
|
** Download Youtube Video
|
||||||
|
|
||||||
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/yt-download.sh
|
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/yt-download.sh
|
||||||
cd ~/Documents/to-watch/;
|
cd ~/Documents/to-watch/;
|
||||||
|
|
||||||
@ -365,7 +368,6 @@ Org Roam Entry for the current page
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Password_fill_rc
|
** Password_fill_rc
|
||||||
|
|
||||||
#+begin_src bash :tangle ~/.config/qutebrowser/password_fill_rc
|
#+begin_src bash :tangle ~/.config/qutebrowser/password_fill_rc
|
||||||
# Show all password fields in the menu
|
# Show all password fields in the menu
|
||||||
query_entries() {
|
query_entries() {
|
||||||
@ -389,7 +391,6 @@ Org Roam Entry for the current page
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Org-Capture
|
** Org-Capture
|
||||||
|
|
||||||
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/org-capture.sh
|
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/org-capture.sh
|
||||||
readonly CAPTURE_SCRIPT=~/.config/qutebrowser/userscripts/org-protocol-capture-html.sh
|
readonly CAPTURE_SCRIPT=~/.config/qutebrowser/userscripts/org-protocol-capture-html.sh
|
||||||
|
|
||||||
@ -535,7 +536,6 @@ Send to Emacs
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Add Url to Buku using Rofi
|
** Add Url to Buku using Rofi
|
||||||
|
|
||||||
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/buku-rofi.sh
|
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/buku-rofi.sh
|
||||||
title=$(echo "$QUTE_TITLE" | rofi -p "Title" -dmenu -lines 1)
|
title=$(echo "$QUTE_TITLE" | rofi -p "Title" -dmenu -lines 1)
|
||||||
tags=$(buku -t --nc --np | sed -e 's/\s*[[:digit:]]*\.\s*\(.*\)\s*([[:digit:]]*)\s*/\1/' -e '/^\s*$/d' | sort | uniq | rofi -multi-select -p "Tags" -dmenu | tr "\n" "," | sed 's/\s*,\s*$//')
|
tags=$(buku -t --nc --np | sed -e 's/\s*[[:digit:]]*\.\s*\(.*\)\s*([[:digit:]]*)\s*/\1/' -e '/^\s*$/d' | sort | uniq | rofi -multi-select -p "Tags" -dmenu | tr "\n" "," | sed 's/\s*,\s*$//')
|
||||||
@ -546,11 +546,20 @@ Send to Emacs
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Add Url to Buku without asking for information
|
** Add Url to Buku without asking for information
|
||||||
|
|
||||||
#+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
|
** Download with aria2c
|
||||||
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/aria2c-add.sh
|
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/aria2c-add.sh
|
||||||
aria2p add "$1"
|
aria2p add "$1"
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
** Screenshot
|
||||||
|
#+begin_src bash :tangle ~/.config/qutebrowser/userscripts/html-to-png.sh
|
||||||
|
filename=$(rofi -p "filename" -dmenu -lines 1)
|
||||||
|
|
||||||
|
cd ~/Pictures/;
|
||||||
|
|
||||||
|
firefox-developer-edition -P default -headless --screenshot "$filename.png" "$QUTE_URL"
|
||||||
|
#+end_src
|
||||||
|
Loading…
Reference in New Issue
Block a user