From c181fd22e9852af8b5b8a457800481418f4eb7e0 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 25 May 2017 18:27:10 +0100 Subject: [qutebrowser] Add zathura-open userscript --- qutebrowser/.local/share/qutebrowser/userscripts/bookmarks-dmenu | 7 ------- qutebrowser/.local/share/qutebrowser/userscripts/zathura-open | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) delete mode 100755 qutebrowser/.local/share/qutebrowser/userscripts/bookmarks-dmenu create mode 100755 qutebrowser/.local/share/qutebrowser/userscripts/zathura-open (limited to 'qutebrowser/.local/share') 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 -- cgit v1.2.3