Removed extra fzf-pass. Not needed, yet.

Plus it doesn't work.
This commit is contained in:
James Patrick 2020-06-27 00:31:11 -04:00
parent 7999a4110e
commit b44fd1318d
1 changed files with 0 additions and 40 deletions

View File

@ -1,40 +0,0 @@
#!/usr/bin/env bash
cd "$HOME/.password-store" || exit 1
PASSFILE=$(tree -Ffi | grep '.gpg' | sed 's/.gpg$//g' | sed 's/^..//' | fzf)
if [ -z "$PASSFILE" ]; then
exit 0
fi
PASSDATA="$(pass "$PASSFILE")"
USRNAME="$(echo "$PASSDATA" | grep "username:" | cut -d' ' -f2-)"
PASS="$(echo "$PASSDATA" | head -n 1)"
URL="$(echo "$PASSDATA" | grep url: | cut -d' ' -f2-)"
RESP=$(cat <<EOF | fzf
Autotype
Username
Password
URL
EOF
);
swaymsg move container to workspace 9
case "$RESP" in
Autotype)
ydotool type "$USRNAME" && ydotool key Tab && ydotool type "$PASS" && ydotool key Enter
;;
Username)
ydotool type "$USRNAME"
;;
Password)
ydotool type "$PASS"
;;
URL)
ydotool type "$URL"
;;
*)
exit 1
esac