From 2a0962d39f66aeff81d1ee41bde4c9d9d7706d08 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Mon, 22 Jan 2018 18:35:18 +0100 Subject: [qutebrowser] Add script for passwords --- .../.local/share/qutebrowser/userscripts/dictionary-search | 3 --- qutebrowser/.local/share/qutebrowser/userscripts/explorer | 4 +--- qutebrowser/.local/share/qutebrowser/userscripts/history | 10 ---------- qutebrowser/.local/share/qutebrowser/userscripts/user-password | 7 +++++++ qutebrowser/.local/share/qutebrowser/userscripts/zathura-open | 6 ------ 5 files changed, 8 insertions(+), 22 deletions(-) delete mode 100755 qutebrowser/.local/share/qutebrowser/userscripts/dictionary-search delete mode 100755 qutebrowser/.local/share/qutebrowser/userscripts/history create mode 100755 qutebrowser/.local/share/qutebrowser/userscripts/user-password delete mode 100755 qutebrowser/.local/share/qutebrowser/userscripts/zathura-open (limited to 'qutebrowser/.local') diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/dictionary-search b/qutebrowser/.local/share/qutebrowser/userscripts/dictionary-search deleted file mode 100755 index cb9ad7d..0000000 --- a/qutebrowser/.local/share/qutebrowser/userscripts/dictionary-search +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -echo "open -t http://dictionary.cambridge.org/dictionary/english/$QUTE_SELECTED_TEXT" > "$QUTE_FIFO" diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/explorer b/qutebrowser/.local/share/qutebrowser/userscripts/explorer index f134aa5..02d6812 100755 --- a/qutebrowser/.local/share/qutebrowser/userscripts/explorer +++ b/qutebrowser/.local/share/qutebrowser/userscripts/explorer @@ -1,15 +1,13 @@ #!/usr/bin/env bash scripts_dir="$HOME/.local/share/qutebrowser/userscripts" -rofi_modi="quickmarks:$scripts_dir/quickmarks,tabs:$scripts_dir/tabs,history:$scripts_dir/history" +rofi_modi="quickmarks:$scripts_dir/quickmarks,tabs:$scripts_dir/tabs" rofi_comand="rofi -combi-modi $rofi_modi -modi $rofi_modi -show" if [[ "$1" = "-t" ]]; then $rofi_comand tabs elif [[ "$1" = "-b" ]]; then $rofi_comand quickmarks -elif [[ "$1" = "-h" ]]; then - $rofi_comand history else $rofi_comand combi fi diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/history b/qutebrowser/.local/share/qutebrowser/userscripts/history deleted file mode 100755 index 2122666..0000000 --- a/qutebrowser/.local/share/qutebrowser/userscripts/history +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -if [ -n "$1" ] -then - echo "open $(echo $1 | awk '{print $NF}')" >> $QUTE_FIFO - exit; -fi - -# List history -cat ~/.local/share/qutebrowser/history | awk '{print $3 ": " $2}' diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/user-password b/qutebrowser/.local/share/qutebrowser/userscripts/user-password new file mode 100755 index 0000000..33ca7b5 --- /dev/null +++ b/qutebrowser/.local/share/qutebrowser/userscripts/user-password @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +target=$(find $HOME/.password-store/ -name "*.gpg" -printf "%P\n" | dmenu -i -p "Get identifier for:") +echo "fake-key ''" >> $QUTE_FIFO +echo "fake-key '$(basename $target .gpg)'" >> $QUTE_FIFO +echo "fake-key ''" >> $QUTE_FIFO +echo "fake-key '$(pass show ${target%.gpg})'" >> $QUTE_FIFO diff --git a/qutebrowser/.local/share/qutebrowser/userscripts/zathura-open b/qutebrowser/.local/share/qutebrowser/userscripts/zathura-open deleted file mode 100755 index 088eff2..0000000 --- a/qutebrowser/.local/share/qutebrowser/userscripts/zathura-open +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -fname=/tmp/${RANDOM}.pdf - -curl ${QUTE_URL%.pdf}.pdf > ~/test.pdf -nohup zathura ~/test.pdf -- cgit v1.2.3