dotfiles/scripts/.local/bin/pinentry-fuzzel

19 lines
285 B
Text
Raw Normal View History

2025-03-05 09:14:20 -08:00
#!/bin/sh
echo "OK Please go ahead"
while read stdin; do
case $stdin in
GETPIN | getpin)
echo "D $(fuzzel --prompt-only "Passphrase: " --cache /dev/null --password --dmenu)"
echo "OK"
;;
BYE | bye)
echo "OK closing connection"
exit 0
;;
*)
echo "OK"
;;
esac
done