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)