dpass => fzf-pass
This commit is contained in:
parent
aefba6a2da
commit
3100ccb884
|
@ -18,7 +18,7 @@ super + space
|
||||||
|| urxvt -name urxvt-fuzzy -geometry 100x26 -e $SHELL -c fzf-apps
|
|| urxvt -name urxvt-fuzzy -geometry 100x26 -e $SHELL -c fzf-apps
|
||||||
# password manager
|
# password manager
|
||||||
super + alt + backslash
|
super + alt + backslash
|
||||||
dpass
|
fzf-pass
|
||||||
# make sxhkd reload its configuration files:
|
# make sxhkd reload its configuration files:
|
||||||
super + Escape
|
super + Escape
|
||||||
pkill -USR1 -x sxhkd
|
pkill -USR1 -x sxhkd
|
||||||
|
|
|
@ -7,14 +7,16 @@ password_files=( "$prefix"/**/*.gpg )
|
||||||
password_files=( "${password_files[@]#"$prefix"/}" )
|
password_files=( "${password_files[@]#"$prefix"/}" )
|
||||||
password_files=( "${password_files[@]%.gpg}" )
|
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
|
[[ -n $entry ]] || exit
|
||||||
out=$(pass show "$entry")
|
out=$(pass show "$entry")
|
||||||
|
|
||||||
[[ $out ]] || exit
|
[[ $out ]] || exit
|
||||||
fields=$(echo "$out" | cut -d: -f1 | tail -n +2)
|
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
|
case "$field" in
|
||||||
password)
|
password)
|
Loading…
Reference in a new issue