personal config

This commit is contained in:
λmolinae 2025-06-22 22:21:48 -06:00
parent af6440da8f
commit 5a68bfbec1
7 changed files with 68 additions and 6 deletions

16
pinentry-mew Executable file
View file

@ -0,0 +1,16 @@
#!/bin/sh
# ported from pinentry-dmenu
echo 'OK Pleased to meet you'
while read -r stdin; do
case $stdin in
*BYE*) exit ;;
*SETDESC*) KEYNAME=${stdin#*:%0A%22}; KEYNAME=${KEYNAME%\%22\%0A*}; KEYID=${stdin#*ID }; KEYID=${KEYID%,*} ;;
*GETPIN*) printf 'D %s\n' $(mew -P -p "pinentry: $KEYNAME ($KEYID) ${error:+$error }$prompt") ;;
*SETERROR*) error="${stdin#*\ }"; ;;
*SETPROMPT*) prompt="${stdin#*\ }"; ;;
esac
echo OK
done