diff options
author | Urbain Vaes <urbain@vaes.uk> | 2017-05-25 18:27:10 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2017-05-25 18:27:10 +0100 |
commit | c181fd22e9852af8b5b8a457800481418f4eb7e0 (patch) | |
tree | b4a134c0f52ab6a0e44e586c4d9c16f83a739126 /qutebrowser | |
parent | 6575e05ef82bfb4ed7c4805643e1eaad61624da4 (diff) |
[qutebrowser] Add zathura-open userscript
Diffstat (limited to 'qutebrowser')
3 files changed, 28 insertions, 25 deletions
diff --git a/qutebrowser/.config/qutebrowser/keys.conf b/qutebrowser/.config/qutebrowser/keys.conf index 9bed74f..67c4c11 100644 --- a/qutebrowser/.config/qutebrowser/keys.conf +++ b/qutebrowser/.config/qutebrowser/keys.conf @@ -122,24 +122,9 @@ reload -f back H -back -t - th - -back -w - wh - forward L -forward -t - tl - -forward -w - wl - -fullscreen - <f11> - hint f @@ -191,6 +176,9 @@ hint --rapid links window hint links download ;d +hint links userscript zathura-open + ;z + scroll left h @@ -326,9 +314,6 @@ navigate decrement inspector wi -spawn --userscript dictionary-search - gD - download gd @@ -457,6 +442,21 @@ record-macro run-macro @ +back -t + th + +back -w + wh + +forward -t + tl + +forward -w + wl + +fullscreen + <f11> + [insert] # Keybindings for insert mode. # Since normal keypresses are passed through, only special keys are @@ -690,3 +690,6 @@ scroll up scroll right L +spawn --userscript dictionary-search + gD + diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/bookmarks-dmenu b/qutebrowser/.local/share/qutebrowser/userscripts/bookmarks-dmenu deleted file mode 100755 index 0f89413..0000000 --- a/qutebrowser/.local/share/qutebrowser/userscripts/bookmarks-dmenu +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -url=$(cat ~/.config/qutebrowser/bookmarks/urls | dmenu -i -l 15 | awk '{print $1}') - -[ -z ${url} ] && exit - -echo "open $url" >> "$QUTE_FIFO" diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/zathura-open b/qutebrowser/.local/share/qutebrowser/userscripts/zathura-open new file mode 100755 index 0000000..69b9dd1 --- /dev/null +++ b/qutebrowser/.local/share/qutebrowser/userscripts/zathura-open @@ -0,0 +1,7 @@ +#!/bin/bash + +fname=/tmp/${RANDOM}.pdf + +echo ${QUTE_URL} > ~/testurl +curl ${QUTE_URL} > ~/test.pdf +nohup zathura ~/test.pdf |