From 3100ccb884e7127a955ee1ea688d4b45aaef4fff Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 25 Apr 2017 14:19:21 -0400 Subject: [PATCH] dpass => fzf-pass --- os/arch/.config/sxhkd/sxhkdrc | 2 +- os/arch/bin/dpass => shell/fzf/bin/fzf-pass | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) rename os/arch/bin/dpass => shell/fzf/bin/fzf-pass (66%) diff --git a/os/arch/.config/sxhkd/sxhkdrc b/os/arch/.config/sxhkd/sxhkdrc index 5bc3d6e8..17d4d0a5 100644 --- a/os/arch/.config/sxhkd/sxhkdrc +++ b/os/arch/.config/sxhkd/sxhkdrc @@ -18,7 +18,7 @@ super + space || urxvt -name urxvt-fuzzy -geometry 100x26 -e $SHELL -c fzf-apps # password manager super + alt + backslash - dpass + fzf-pass # make sxhkd reload its configuration files: super + Escape pkill -USR1 -x sxhkd diff --git a/os/arch/bin/dpass b/shell/fzf/bin/fzf-pass similarity index 66% rename from os/arch/bin/dpass rename to shell/fzf/bin/fzf-pass index 8257e690..56d284a6 100755 --- a/os/arch/bin/dpass +++ b/shell/fzf/bin/fzf-pass @@ -7,14 +7,16 @@ password_files=( "$prefix"/**/*.gpg ) password_files=( "${password_files[@]#"$prefix"/}" ) password_files=( "${password_files[@]%.gpg}" ) -entry=$(printf "%s\n" "${password_files[@]}" | rofi -dmenu -p pass: "$@") +# entry=$(printf "%s\n" "${password_files[@]}" | rofi -dmenu -p pass: "$@") +entry=$(printf "%s\n" "${password_files[@]}" | gui-fzf) [[ -n $entry ]] || exit out=$(pass show "$entry") [[ $out ]] || exit fields=$(echo "$out" | cut -d: -f1 | tail -n +2) -field=$(printf "password\n%s\n" "${fields[@]}" | rofi -dmenu -p pass:field:) +# field=$(printf "password\n%s\n" "${fields[@]}" | rofi -dmenu -p pass:field:) +field=$(printf "password\n%s\n" "${fields[@]}" | gui-fzf) case "$field" in password)