dotfiles/dotfiles/scripts/otp.sh
2024-07-11 08:43:48 +02:00

18 lines
274 B
Bash
Executable file

#!/bin/sh
folder="$(ls ~/.password-store/ | sed -e 's/\.gpg$//' | fuzzel -d)"
if [ -z $folder ];
then
exit
fi
choice="$(ls ~/.password-store/$folder | sed -e 's/\.gpg$//' | fuzzel -d)"
if [ -z $choice ];
then
exit
fi
wtype -d 10 "$(pass otp "$folder/$choice")"