Configure Pass with Qutebrowser + change font to hack

This commit is contained in:
Thomas Dehaeze 2019-04-08 17:50:44 +02:00
parent f960a1f354
commit e7931fa50e

View File

@ -86,7 +86,7 @@ c.downloads.remove_finished = 10000
* Fonts
#+BEGIN_SRC conf
# Default monospace fonts
c.fonts.monospace = '"SauceCodePro Nerd Font Mono" "xos4 Terminus", Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Courier New", Courier, "Liberation Mono", monospace, Fixed, Consolas, Terminal'
c.fonts.monospace = '"Hack Nerd Font Mono" "xos4 Terminus", Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Courier New", Courier, "Liberation Mono", monospace, Fixed, Consolas, Terminal'
# Font used for prompts.
c.fonts.prompts = '10pt monospace'
@ -877,7 +877,7 @@ c.url.start_pages = ['https://start.duckduckgo.com']
#+END_SRC
** Custom Bindings
Use Pass to fill password and username
Use Pass to fill password and username (configuration is done in =~/.config/qutebrowser/password_fill_rc=).
#+BEGIN_SRC conf
config.bind(',p', 'spawn --userscript password_fill')
#+END_SRC
@ -922,3 +922,27 @@ echo "* TODO $QUTE_TITLE" >> ~/Dropbox/org/refile.org
echo "$QUTE_URL" >> ~/Dropbox/org/refile.org
echo "message-info 'Added to refile.org'" >> "$QUTE_FIFO"
#+end_src
** Password_fill_rc
:PROPERTIES:
:header-args+: :tangle ~/.config/qutebrowser/password_fill_rc
:END:
#+begin_src bash
# Show all password fields in the menu
query_entries() {
# safe queried url for choose_entry
export queried_url="$1"
mapfile -t files < <(find -L "$PREFIX" -iname '*.gpg' -printf '%P\n' |sed 's,\.gpg$,,')
}
# Even if there is only one entry, always show a menu
# for user confirmation.
choose_entry() {
MENU_COMMAND=(
rofi -dmenu
-p "qutebrowser> "
-filter "$queried_url"
-mesg $'Pick a password entry for <b>'"${QUTE_URL//&/&amp;}"'</b>'
)
file=$( printf "%s\n" "${files[@]}" | "${MENU_COMMAND[@]}" )
}
#+end_src