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
|
||||
# password manager
|
||||
super + alt + backslash
|
||||
dpass
|
||||
fzf-pass
|
||||
# make sxhkd reload its configuration files:
|
||||
super + Escape
|
||||
pkill -USR1 -x sxhkd
|
||||
|
|
|
@ -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)
|
Loading…
Reference in a new issue